Skip to content

Instantly share code, notes, and snippets.

@mbrengel
mbrengel / logging_example.py
Last active January 17, 2024 11:30
Python Logging Setup
#!/usr/bin/env python3
import logging
from logging.handlers import RotatingFileHandler
import sys
import colorama
def configure_logging():
# enable cross-platform colored output
colorama.init()