logalpha.logger
Logger
Base logging interface.
By default the levels and colors are the conventional set. Append any number of appropriate handlers.
>>> log = Logger() >>> log.warning('foo')
>>> Logger.handlers.append(StreamHandler()) >>> log.warning('bar') bar
levels
colors
write
Publish message to all handlers if its level is sufficient for that handler.
Note
It’s expected that the logger will be called with one of the dynamically instrumented level methods (e.g., info()), and not call the write() method directly.
info()
write()
logalpha.handler
logalpha.contrib.ok