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.5.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

py12flogging-0.5.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py12flogging-0.5.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.5.2

File hashes

Hashes for py12flogging-0.5.0.tar.gz
Algorithm Hash digest
SHA256 20aa0f6a90619ba4abe4c980047ee338acb2fdee55b90356f337a69cbb91f1ed
MD5 0e418e419014ac249a63ab8c4657d39b
BLAKE2b-256 8ab0c8fabd7276abb858be519f7cfd46bde991f840f6fc4875d60f3403df82f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py12flogging-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.5.2

File hashes

Hashes for py12flogging-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdeb5ac960f1eceed30a3b4497d055169b7834b404c7830084eef782307dc061
MD5 310c4b2c5f765fa602f17421827506e4
BLAKE2b-256 f9a9f64952c3963d01fd811e0d17fe63e537a7cc3f4583761310210bf22c6361

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