Open tczhao opened 1 month ago
Python root logger has default level warning. With the current example, info and debug log will get filtered out
warning
info
debug
we should have additional line such as logging.getLogger().setLevel(logging.NOTSET), so that all logs are processed https://github.com/open-telemetry/opentelemetry-python/blob/af83ef151fae90a2bd96224add771e9bb20c33df/docs/examples/logs/example.py#L37
logging.getLogger().setLevel(logging.NOTSET)
Working on this issue
Python root logger has default level
warning
. With the current example,info
anddebug
log will get filtered outwe should have additional line such as
logging.getLogger().setLevel(logging.NOTSET)
, so that all logs are processed https://github.com/open-telemetry/opentelemetry-python/blob/af83ef151fae90a2bd96224add771e9bb20c33df/docs/examples/logs/example.py#L37