I think I am not understanding how Python's logging library works. I have a simple function:
def all_caps(_string):
logging.debug("debug")
logging.info("info")
logging.warning("warning")
logging.error("error")
logging.critical("critical")
return _string.upper()
From what I understand from tutorials, if I run this function with an input that produces no errors (e.g. all_caps("hello")), I should see the output:
DEBUG:root:debug
INFO:root:info
However, I see the exact opposite:
WARNING:root:warning
ERROR:root:error
CRITICAL:root:critical
HELLO
Am I crazy? Am I using logging fundamentally wrong?