python-yaml-logger
Overview
python-yaml-logger is a formatter for the standard Python logging module designed to allow formatting log data as YAML. Using YAML allow for both human- and machine-readable log files, and allows developers to quickly parse and make better use of log data.
Installation
Manual installation:
$ wget http://github.com/OldhamMade/python-yaml-logger/archive/master.tar.gz -O- | tar zx $ cd python-yaml-logger-master $ python setup.py install
Usage
import logging
import yamlformatter
logger = logging.getLogger()
logHandler = logging.FileHandler('my.yamllog')
formatter = yamlformatter.YAMLFormatter()
logHandler.setFormatter(formatter)
logger.addHandler(logHandler)
Example output
- asctime: 2013-04-10 15:39:26,014 created: 1365604766.014612 levelname: INFO message: test message name: logger_name
Metadata
Release files for python-yaml-logger 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-yaml-logger-0.3.1.tar.gz | 2.8 kB | Without provenance | Details for python-yaml-logger-0.3.1.tar.gz |
Release files / python-yaml-logger-0.3.1.tar.gz
| Download URL | python-yaml-logger-0.3.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebee3766880894a71ed7599db6a93d562fea38f34391653c28d4578315fb8229
|
|
BLAKE2b-256 checksum How to use checksums |
aba3cca30a052312e4d72952d99edd5834e4f89b1a2fe2e7a94adc7ec1cd1b8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-yaml-logger 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.