Skip to main content

Python logging module for developing microservices conforming to 12 Factor App methodology.

Project description

Python logging module for developing microservices conforming to 12 Factor App methodology. Depends only on Python standard lib. However, setuptools may be installed to provide additional functionality.

Installation

Py12fLogging is available to install from PyPI:

pip install py12flogging

Usage

Py12fLogging is a module used for developing microservices. It is not a standalone application. See module documentation for more information.

Example use of log_formatter -module:

import logging
from py12flogging import log_formatter
log_formatter.setup_app_logging('my_app')
logging.info('all done')

PrettyPrint logging output

Developers may wish to restructure log output stream of an application while it’s under development. This can be achieved by using pprint command line application, which prettyprints the log output stream coming from stdin and flushes immediately to stdout. See module documentation for more information.

Pipe application’s stdout to pprint-module:

./my_app.py | python -m py12flogging.pprint

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

py12flogging-0.7.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

py12flogging-0.7.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file py12flogging-0.7.0.tar.gz.

File metadata

  • Download URL: py12flogging-0.7.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for py12flogging-0.7.0.tar.gz
Algorithm Hash digest
SHA256 93c651fa875363e63a0165e174d023fc22569ee455bec03b7cd0eaae311a0ff8
MD5 719ef74d2eb9d6fbb68e15ee46fb5b10
BLAKE2b-256 cc8ee21d57ca3b8cf65d846a06b8bd8c6fcd63ea91a0816505f664fc4b66d441

See more details on using hashes here.

File details

Details for the file py12flogging-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: py12flogging-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for py12flogging-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afb87d848f235342e5d831468083578d927e80d232f789e7d1ec20d3bad446fa
MD5 7c9d78beeebcc909685d0417d5bf0d68
BLAKE2b-256 f5c5cba67f62af92f682e1231b545fdf7acb3fcb6ef11da1af7f87a4f85976f6

See more details on using hashes here.

Supported by

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