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.2.tar.gz
(29.7 kB
view hashes)
Built Distribution
Close
Hashes for loggingtools-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f0e928d3a5f0aa4be49ebfceea2c94d47e90716996b5b51087761e7459a6a53 |
|
MD5 | 0b7bbe84884e8aeb144fb2273dc23aad |
|
BLAKE2b-256 | 76084d4de8fe50807911c9736ce884b3d6b7c29145be565eb650251273d1b100 |