[Bitesize Python] How to implement proper logging in a complex multi-module project

Savindi Wijenayaka
5 min readFeb 22, 2024
Photo by Fotis Fotopoulos on Unsplash

The Python.org docs mention three ways of configuring logging with complex handlers and formatters.

  1. Creating loggers, handlers, and formatters explicitly using Python code that calls the configuration methods listed above.
  2. Creating a logging config file and reading it using the fileConfig()

--

--

Savindi Wijenayaka

Ph.D candidate at University of Auckland. Software Engineer passionate about using Machine learning to revolutionize healthcare.