Skip to content

Why OpenTelemetry does not recommend logging to console or stdout? #5389

Answered by cijothomas
POnakS asked this question in Q&A
Discussion options

You must be logged in to vote

Why OpenTelemetry does not recommend logging to console or stdout?

I believe this is more like a question to the OpenTelemetry spec, rather than a question to OpenTelemetry .NET implementation. OTel spec has as stdout exporter, but the spec never made an opinion or specification for how the output should be. Each languages follow their own format, and there is no guarantee that each language will not change its output format. This makes it difficult/impossible for one to use this for any automatic processing. Also see #5372

Best practice related to logging is to log to stdout.

This maybe true in certain scenarios, but not something OTel spec has recommended. Infact, the default exporter

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@POnakS
Comment options

Answer selected by POnakS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants