Python root logger has default level warning.
With the current example, info and debug log will get filtered out
we should have additional line such as logging.getLogger().setLevel(logging.NOTSET), so that all logs are processed
|
logging.getLogger().addHandler(handler) |
Python root logger has default level
warning.With the current example,
infoanddebuglog will get filtered outwe should have additional line such as
logging.getLogger().setLevel(logging.NOTSET), so that all logs are processedopentelemetry-python/docs/examples/logs/example.py
Line 37 in af83ef1