Set up logging parameters

PHOTO EMBED

Thu Dec 03 2020 10:45:28 GMT+0000 (Coordinated Universal Time)

Saved by @MathLaci08 #python

logging.basicConfig(
  level="INFO",
  format="%(asctime)s   (%(filename)s:%(lineno)s) %(levelname)s - %(message)s",
  datefmt="%Y-%m-%d - %H:%M:%S"
)
content_copyCOPY

I'd like to customize the log messages for my application.

https://docs.python.org/3/library/logging.html