Welcome to Python Logging!

What does every new developer do when they are first learning to program? They print out strings to their terminal. It's how we learn! But printing out to the terminal isn't what you do with most professional applications.

In those cases, you log in. Sometimes, you log into multiple locations at once. These logs may serve as an audit trail for compliance purposes or help the engineers debug what went wrong.

Python Logging teaches you how to log in the Python programming language. Python is one of the most popular programming languages in the world. Python comes with a logging module that makes logging easy.

What You'll Learn

In this book, you will learn how about the following:

  • Logger objects
  • Log levels
  • Log handlers
  • Formatting your logs
  • Log configuration
  • Logging decorators
  • Rotating logs
  • Logging and concurrency
  • and more!

Where to Purchase

You can get Python Logging at the following websites:

  • Gumroad (PDF and epub)
  • Leanpub (PDF and epub)
  • Amazon (Kindle and paperback)
  • Teach Me Python (course, PDF, and epub)

Download the Code

You can get the code for the book from GitHub: