dlmarion commented on issue #2785: URL: https://github.com/apache/accumulo/issues/2785#issuecomment-1165840291
I have been unable to modify the OpenTelemetry logging and I think the reason why is that I'm using the java agent. I added `-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager` as specified in the Log4j2 [user guide](https://logging.apache.org/log4j/2.x/log4j-jul/index.html) and modified the logging properties to turn the `io.opentelemetry` loggers `off`. It's not working, I think, because the java agent starts logging before the Log4j2 configuration is read. The output contains: ``` ./accumulo-cluster start OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended [main] INFO io.opentelemetry.javaagent.tooling.VersionLogger - opentelemetry-javaagent - version: 1.14.0 2022-06-24 18:38:37,221 main INFO Registered Log4j as the java.util.logging.LogManager. ... ``` I think that it's possible to modify the logging when *not* using the java agent. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
