First official release
This release includes many changes from different unofficial releases and is also the first official release
which I feel is ready for day to day use.
- Add colored human readable ConsoleFormatter, which is used with the default stream handler.
- Support pretty-printing key=value pairs.
- Add mucho documentation.
- Allow to remove and list handlers.
- Allow to pass custom formatter.
- Add a
log
method which receives a logging level, message and objects. - Support colored console output.
- Add an
event
method which returns acid
(context id). The cid can also be passed into the event method via thecid
flag. - Add
bind
andunbind
methods for binding context to a logger. - Add
set_level
method for setting the logger's level. - Support changing log level via the
_set_level
flag incritical
anderror
log levels. - Support printing a simple message without any formatting (only the
message
field and kv pairs are printed). - Support passing kwarg type context to all logging methods (i.e.
wryter.error('Message', k=v)
. - Add OOB support (with optional dependencies) for Elasticsearch, Logzio, Syslog and File handlers.
- Expose handler configuration via env vars.
- Add many tests
- Add codeclimate checks
- Try to avoid exceptions in the logger as much as possible. Instead, display errors or exceptions in the console.
See the docs for more info.