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.4.tar.gz
(31.5 kB
view hashes)
Built Distribution
Close
Hashes for loggingtools-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5c75b29175b127f7449daef55cdca1bd7bc9f44478c184e7d9f89a86f5aec7 |
|
MD5 | 043539ccd52efe099d2932e1f2328e20 |
|
BLAKE2b-256 | f16c382d92896708da2025542a3ae996fa73a6968cd388ad0049203281440266 |