Skip to main content

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

Release files for py12flogging 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py12flogging 0.8.0
File Size Uploaded
py12flogging-0.8.0.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py12flogging 0.8.0
File Interpreter ABI Platform
py12flogging-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / py12flogging-0.8.0.tar.gz

Download URL py12flogging-0.8.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
99ee256c9cd005bb85baea3cfb6a166d41b5f45588288cf28be0c993adf181c6
BLAKE2b-256 checksum
How to use checksums
76d56833b934b8f18d3d69f56120cdba7eb78c549e3c9b66eafc54c7e1e64f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / py12flogging-0.8.0-py3-none-any.whl

Download URL py12flogging-0.8.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36d666f3a4a18f0c5aa3ddf5b8029b355aac2d98a2512237ea425a20b178477b
BLAKE2b-256 checksum
How to use checksums
0723a559bc196ed2442973857993513440374042fa03ab733c9164a9fe8258ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page