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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py12flogging-0.8.0.tar.gz.
File metadata
- Download URL: py12flogging-0.8.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ee256c9cd005bb85baea3cfb6a166d41b5f45588288cf28be0c993adf181c6
|
|
| MD5 |
1bb03bfc70313850b9679aa8e724307d
|
|
| BLAKE2b-256 |
76d56833b934b8f18d3d69f56120cdba7eb78c549e3c9b66eafc54c7e1e64f49
|
File details
Details for the file py12flogging-0.8.0-py3-none-any.whl.
File metadata
- Download URL: py12flogging-0.8.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d666f3a4a18f0c5aa3ddf5b8029b355aac2d98a2512237ea425a20b178477b
|
|
| MD5 |
5182dfe38d935b1530e886d26251f417
|
|
| BLAKE2b-256 |
0723a559bc196ed2442973857993513440374042fa03ab733c9164a9fe8258ce
|