Closed d-cogswell closed 1 week ago
Hi Dan, By default, a log_level of 'INFO' Will not print to the terminal. The log_level determines which levels (& above, in severity) will be saved to the log file by the logger. Only the 'WARNING', 'ERROR', and 'CRITICAL' levels will print to the terminal. I will look into a way to adjust this with something like a 'print_level'.
logging.basicConfig()
or save it to a file with logging.basicConfig(filename='info.log')
.Yes, that's it! I was running some tests yesterday and was getting confused about how it works, haha.
It seems to me that saving to a log file then removes ALL terminal printing, even for severe log events. Maybe there is a setting that alters this behavior, such as creating a custom handler? Perhaps this reason is why calling a warnings.warn()
with logger.warning()
isn't so redundant after all...
I updated the README.
It's set to 'INFO' by default, but I'm not seeing the information printed to the terminal.