The Python Papers

The Python Papers

Share this post

The Python Papers
The Python Papers
Python 101 - Creating Rotating Logs
Copy link
Facebook
Email
Notes
More

Python 101 - Creating Rotating Logs

Mike Driscoll's avatar
Mike Driscoll
Aug 17, 2023
∙ Paid
5

Share this post

The Python Papers
The Python Papers
Python 101 - Creating Rotating Logs
Copy link
Facebook
Email
Notes
More
Share

Python’s logging module has lots of options. In this article, you will look at the logging module’s ability to create Rotating Logs.

Python supports two types of rotating logs:

  • Rotate logs based on size (RotatingFileHandler)

  • Rotate the logs based on some time interval (TimedRotatingFileHandler)

Let’s spend some time learning how each of these two types of …

Keep reading with a 7-day free trial

Subscribe to The Python Papers to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mike Driscoll
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More