Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 427 Bytes

set-python-logging-level.md

File metadata and controls

16 lines (15 loc) · 427 Bytes

Title: set python logging level Date: 2011-04-13 01:02 Author: Andrea Zonca Tags: python Slug: set-python-logging-level

often using logging.basicConfig is useless because if the logging module is already configured upfront by one of the imported libraries this is ignored.

The solution is to set the level directly in the root logger:
logging.root.level = logging.DEBUG