Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Logging Course
Rating: 3.9 out of 5(4 ratings)
59 students

Python Logging Course

Auditing and Debugging Through Python Logging
Last updated 9/2024
English

What you'll learn

  • Learn how to use Python's logging module
  • Learn why logging and code auditing is important
  • How to format logs so they are using for debugging
  • Learn how to log to multiple locations at once

Course content

1 section14 lectures2h 50m total length
  • Welcome to Python Logging1:23
  • Introduction to Logging10:21
  • Log Levels11:05
  • Log Handlers15:10
  • Log Formatters18:40
  • Log Configuration14:17
  • Log Filters7:19
  • Logging from Multiple Modules10:25
  • Creating a Logging Decorator11:21
  • Rotating Logs13:30

    Learn to implement rotating logs in Python by file size, timed rotations, and config-based setups, with custom rotator and namer to manage backups.

  • Logs and Concurrency23:52
  • Logging with Loguru16:57
  • Logging with Structlog16:03

    Learn to use structlog for Python logging, install and configure it, format and serialize logs to JSON, log exceptions, and write logs to disk.

  • Thanks for taking Python Logging0:29

Requirements

  • Knowing how to write simple Python would be good

Description

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 into files. 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.

Whether you are a beginner with Python or a seasoned programming rock star, Michael Driscoll will help you continue to grow in your developer journey. My blog, Mouse Vs Python, has hundreds of awesome tutorials that you can read for free!

You can rest assured that Michael knows Python. He has been programming and writing about it for over a decade and has ten other Python books!


What You'll Learn


In this course, 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!


Who this course is for:

  • This course is for anyone who wants to learn how to use Python's logging module effectively