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