From 9e35e43d024cb569cbe07f56231fe383bbaf411c Mon Sep 17 00:00:00 2001 From: "R, Rajamanosankari" Date: Fri, 26 Jul 2024 05:06:48 -0400 Subject: [PATCH] updated root logger in example.py Signed-off-by: R, Rajamanosankari --- docs/examples/logs/example.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/examples/logs/example.py b/docs/examples/logs/example.py index 2505aacea7..2277bd859a 100644 --- a/docs/examples/logs/example.py +++ b/docs/examples/logs/example.py @@ -34,8 +34,11 @@ handler = LoggingHandler(level=logging.NOTSET, logger_provider=logger_provider) # Attach OTLP handler to root logger +#logging.getLogger().setlevel(logging.DEBUG) +logging.getLogger().setLevel(logging.NOTSET) logging.getLogger().addHandler(handler) + # Log directly logging.info("Jackdaws love my big sphinx of quartz.")