Skip to content

Instantly share code, notes, and snippets.

View justin-jalandoni's full-sized avatar

Justin Luis A. Jalandoni justin-jalandoni

View GitHub Profile
@justin-jalandoni
justin-jalandoni / logging-setup.py
Created June 20, 2023 16:11
How to setup python logging
import logging
logging.basicConfig(
level=logging.DEBUG,
format="[%(asctime)s][%(levelname)s] - %(message)s",
handlers=[
logging.FileHandler("debug.log"),
logging.StreamHandler()
]
)