Python logging dictionary configuration from yaml, json or dictionary.
Project description
Python Tools for Setting up Logging
Loggingtools
setup_logging
import logging
from loggingtools import setup_logging
setup_logging('logging.yml')
logger = logging.getLogger('<your_logger>')
...
log_with
import logging
from loggingtools import log_with
... # setup your loggers
logger = logging.getLogger('<your_logger>')
@log_with(logger)
def function(arg, arg2):
...
Installation
Loggingtools can be installed through pip using command
pip install loggingtools
Command Line Client
loggingtools config
Command line arguments
- -n, --filename=logging
Filename for logging configuration
- -f, --fileformat=yml
Fileformat: {yml, json}
References
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
loggingtools-0.0.3.tar.gz
(31.3 kB
view hashes)
Built Distribution
Close
Hashes for loggingtools-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d432e8b00e05fc459cc4eb792a5f64905d05464a0dee553db3d75fa101b940 |
|
MD5 | ddf288b6d351b27a44cfe9b08240d979 |
|
BLAKE2b-256 | 39aa62ca3413ec462f9fff800e070d831ef3d8dfccd893e04f7a4940da60a126 |