Skip to content

Commit

Permalink
updated root logger in example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
R, Rajamanosankari authored and R, Rajamanosankari committed Jun 26, 2024
1 parent 857e7ef commit f5cf5c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/examples/logs/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit f5cf5c9

Please sign in to comment.