Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
add get_logger and get_extended_debug_logger #170
What was wrong?
The metaclass approach to installing loggers is nice but it turns out it's really hard to use because it doesn't play well with other metaclasses and you have to do a a lot of really gross boilerplate to make it work.
How was it fixed?
This PR exposes two new utilties,
Cute Animal Picture
carver left a comment
Yeah, looks great. Only think I can think to add is making sure that the context manager reset back to the default logger doesn't regress. Something like:
get_logger('a', SpecialLogger) # make sure that the default logger doesn't switch to the special logger: b = get_logger('b') isinstance(b, logging.Logger)