ayust / kitnirc

Python IRC bot framework.
MIT License
11 stars 7 forks source link

Change log level while running. #9

Closed relsqui closed 10 years ago

relsqui commented 10 years ago

It would be nice to be able to change the log level without restarting the skeleton bot; that's about the only reason I ever do.

ayust commented 10 years ago

You can do that from your code via logging.getLogger().setLevel(logging.DEBUG) or similar. Calling logging.getLogger() with no arguments returns the root logger, which is where the level needs to be changed.