Last active
April 16, 2024 16:31
-
-
Save kaycebasques/010a8e11140dd6ad2547ca8445597352 to your computer and use it in GitHub Desktop.
pylog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging # debug | |
log_id = 'debug' # debug | |
logger = logging.getLogger(log_id) # debug | |
handler = logging.FileHandler(f'{log_id}.log') # debug | |
logger.addHandler(handler) # debug | |
logger.setLevel(logging.DEBUG) # debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment