How do I use OTEL_LOG_LEVEL #2633
Answered
by
vmarchaud
jonaskello
asked this question in
Q&A
-
I'm trying to use In env:
In code: api.diag.setLogger(new DiagConsoleLogger()); I would expect the above to log diagnostics to the console at level set by env variable It works if I set it expclictly in code like this: api.diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.VERBOSE); |
Beta Was this translation helpful? Give feedback.
Answered by
vmarchaud
Nov 19, 2021
Replies: 1 comment 1 reply
-
There is an discussion about this here: open-telemetry/opentelemetry-js-api#102, the environment variable isn't respected for now |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jonaskello
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an discussion about this here: open-telemetry/opentelemetry-js-api#102, the environment variable isn't respected for now