Created
July 16, 2016 17:02
-
-
Save taozle/dd7ac0714f194f211ad4036e49fc24de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logging.config.dictConfig({ | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': { | |
'console': {'format': '[%(levelname)s %(asctime)s %(name)s] %(message)s'}, | |
}, | |
'handlers': { | |
'console': { | |
'level': 'INFO', | |
'formatter': 'console', | |
'class': 'logging.StreamHandler' | |
}, | |
}, | |
'loggers': { | |
'': {'handlers': ['console'], 'level': 'INFO'}, | |
'some_topic': {'handlers': ['console'], 'level': 'INFO', 'propagate': False}, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment