-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Maybe this will be harder than it seems but some behaviour like:
For a logger called ingestorlogger, DEBUG_ingestorlogger is set in os env then it will be debug level.
OR if logger.log() is called from a file called blabla.py if DEBUG_blabla.py is set in env then all logger calls fromthis file are treated as if logger was debug level.
nice opportunity for a context manager (for xtra style points)
class CustomLogger(logging.Logger):
def log():
if condition:
with TmpDebugLevel():
super().log()
else:
super().log()Reactions are currently unavailable