open-telemetry / opentelemetry-java

OpenTelemetry Java SDK
https://opentelemetry.io
Apache License 2.0
1.97k stars 814 forks source link

Internal Otel SDK logging with Log4J #6731

Closed arun-annamalai closed 1 week ago

arun-annamalai commented 1 week ago

Is your feature request related to a problem? Please describe.

According to the documentation (https://opentelemetry.io/docs/languages/java/sdk/#internal-logging), the internal otel sdk uses JUL to log error messages (for example in cases of a span export failure).

Describe the solution you'd like A clear and concise description of what you want to happen. I would like to configure my logging via log4J

Describe alternatives you've considered I have considered the sl4J bridge between JUL and log4j, but I was hoping for a native solution given log4J is so widely used.

Additional context Add any other context or screenshots about the feature request here.

jkwatson commented 1 week ago

Hello @arun-annamalai . We are committed to minimizing the dependencies that we bring along when using our libraries, so we will not be converting over to using log4j. Your best bet is to use the bridge to go from JUL to log4j.

jkwatson commented 1 week ago

closing, as we will not be pursuing this.