admin管理员组文章数量:1122846
I'm using otel.javaagent to instrument my code and I'm using JUL(java.util.logging) for logging. I have defined a custom JsonFormatter for my console logging and have registered in logging.properties e.g.
java.util.logging.ConsoleHandler.formatter=my.example.JsonFormatter
this formatter is being picked up by OTEL API where I create spans (since they use JUL as well). But not by otel.javaagent .
based on otel.javaagent docs, it seems it has OTEL_JAVAAGENT_LOGGING that can be set to simple, application or none (/)
Is otel.javaagent also uses JUL or other libs?
and how can a customer log fomatter be set for it?
本文标签: otlphow to configure oteljavaagent to print logs in JSON formatStack Overflow
版权声明:本文标题:otlp - how to configure otel.javaagent to print logs in JSON format - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736300807a1930951.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论