xolox / python-verboselogs

Verbose logging for Python's logging module

Home Page:http://verboselogs.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document how to use with dictConfig()

mattdm opened this issue · comments

I am a coding dilettante — I write programs for fun, occasionally. I like to have proper logs, but wow the logging module is complicated. I'd love to add these levels (they should be standard!). And, I'd like to load the logging config from my program's already-yaml-based-config file, using dictConfig(). I'm totally perplexed about how one might do this — if I have VERBOSE or NOTICE in my config for a handler, that handler doesn't seem to get defined right, and then everything false apart.

Adding this to the documentation would be much appreciated.