Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Control Logging Threshold?

If you have log statements at the various levels of log.debug(), log.info(), log.warn() and log.error() scattered throughout your algorithm's code, is there a way to have it not log things below a given level? In other words, have it say, only show warn and error level messages (like you can in most logging libraries such as Log4J). It's not the end of the world if this isn't supported yet -- I can use Python if statements to implement it my own way -- but I figured I would check in case I'm overlooking something in the docs.

1 response

i don't see anything in the docs, however just write some global logging methods that encapsulate the level logic you need.