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
Release history Release notifications | RSS feed
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
File details
Details for the file py12flogging-0.6.0.tar.gz
.
File metadata
- Download URL: py12flogging-0.6.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cd53d0e5ceb63fa641d3f413e437c99d8d27535e9157c9116fdf077c4357ee0 |
|
MD5 | 69439c914624e44ef71d794eb5417f38 |
|
BLAKE2b-256 | 6ac64de5220f43f4239f1e741a237a6a282fadee67a58a8d2dc06921bb854c79 |
File details
Details for the file py12flogging-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: py12flogging-0.6.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49e4d2096ad16c0b25c444daf364b4af72459662d4394dac84a6e62c6c4a5cb9 |
|
MD5 | e3014651d516f7301ffa342808b643bb |
|
BLAKE2b-256 | 99e4616ba131e521889ab898507a12b41f7c03df094b38523fa6037106167037 |