aws / aws/aws-lambda-java-libs

Support log4j Custom ContextDataProvider?

Offen
#307 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
548
Forks
241
Ø Merge
2 T. 5 Min.
Gemergte PRs (30 T.)
11

Beschreibung

I tried a get a custom log4j `ContextDataProvider` (see [log4j doc](https://logging.apache.org/log4j/2.x/manual/extending.html#ContextDataProvider) to work but to no avail.

From the log4j doc, this mechanism relies on `java.util.ServiceLoader` to locate and load `ContextDataProvider` instances.
Is this a restriction of the Corretto VM in AWS Lambda for Java?

I tested this with https://github.com/dynatrace-oss/log4j-metadata-provider.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.