Welcome to the Linux Foundation Forum!

Missing import in "Getting Started with Logging (4)"

RE:

https://trainingportal.linuxfoundation.org/learn/course/getting-started-with-opentelemetry-lfs148/hands-on-lab-manual-instrumentation-logs/hands-on-lab-exercises?page=4

The section with the following text:

  1. This LoggingHandler then needs to be attached to the logging module of Python. This can be done in app.py with:
  2.  
  3. logger = logging.getLogger()
  4. logger.addHandler(handler)

needs to mention that from logging_utils import handler needs to also be added to app.py.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training