So I'm using python's built in logging module to perform logging. In general, I really like the way it works but I'm wondering if there is an easy way to do the following:
I want to log data out to a file and console as my script is executing, preferably using logger.info(). I would also like to log warnings/errors out to the console, preferably using logger.warning() and logger.error(). That part is easy. However, I would also like if the warnings/errors did not also go to the info log.
Right now from my understanding, if I have a handler set at the info level, it will always pass anything at the info level and higher.
The only solution I can think of is to separate my logging to two separate loggers but I would like to avoid that.