Skip to main content

A More Pythonic Logging System

Project description

A More Pythonic Logging System; or, You Deserve Better Than log4j

https://travis-ci.org/vforgione/logging2.svg?branch=master https://coveralls.io/repos/github/vforgione/logging2/badge.svg?branch=master https://readthedocs.org/projects/logging2/badge/?version=latest

The Basic Contract of Logging

Logging should be simple and intuitive.

For most use cases, you want to quickly instantiate a logger and dump some text to a stream. You would expect a common workflow based on a minimum level of verbosity in the log entries and for those entries to be formatted in some fashion that is both human readable and machine parseable. There should also be a set of common metadata that can be used to provide context to the entry.

That context should also be easily extended to suit everyone’s use cases. Additionally, the values passed to that context should be pliable - users should have the option to override those values as they deem necessary.

Common meta information should conform to as widely adopted standards as possible - i.e. ISO 8601 timestamps and full unicode supported messages.

As stated foremost, the interface to this system should be simple and intuitive. This means the complexity of the system should be minimized, configuration should have sane defaults and the supporting library should be packed with expressive documentation.

Implementation of the Contract

The user should only be concerned with three components:

  • Verbosity (LogLevel)

  • Message Producers (Handler)

  • Message Creation (Logger)

Caveats

This logging utility is designed for Python 3.6 and better. It will not be backported to support any earlier versions of Python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logging2-0.1.1.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file logging2-0.1.1.tar.gz.

File metadata

  • Download URL: logging2-0.1.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for logging2-0.1.1.tar.gz
Algorithm Hash digest
SHA256 16d14fec156c65dd7ba20cee43129e52de5e506d76d994d523f067ee94b2372e
MD5 1acc1b4b145f432ccf010aeee9d2f1c2
BLAKE2b-256 1edf3994d6f04915dbfa2ea900807aeeff36801d87868f83e1fad3fb6518bc5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page