Utilities we use for logging and formatting.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
yplan_logging_utils
.editorconfig
.gitignore
.travis.yml
HISTORY.rst
LICENSE
MANIFEST.in
README.rst
requirements.in
requirements.txt
setup.cfg
setup.py
tox.ini

README.rst

yplan-logging-utils

Utilities we use for logging throughout our projects.

  • Free software: ISC license

Features

  • PlainJSONFormatter - a formatter that turns logging records into dicts in our (somewhat in-house) format. Note it returns a dict rather than a str, which is somewhat non-standard but compatible with the fluent-logger package.
  • JSONFormatter - a subclass of the above that does json.dumps so you get the stringified version of the dictionary.