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 details)
Built Distribution
File details
Details for the file loggingtools-0.0.4.tar.gz
.
File metadata
- Download URL: loggingtools-0.0.4.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 161afedc33cce46d1444474606faf42524489f5a4859cb506cea353a3c345f0b |
|
MD5 | e09f0a22776787697c32fbbdce76b51a |
|
BLAKE2b-256 | 513f3ebdd23ad031a5e56c2771206dd30f61c7b28d8f60e5d7bd9438f866d9d9 |
File details
Details for the file loggingtools-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: loggingtools-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5c75b29175b127f7449daef55cdca1bd7bc9f44478c184e7d9f89a86f5aec7 |
|
MD5 | 043539ccd52efe099d2932e1f2328e20 |
|
BLAKE2b-256 | f16c382d92896708da2025542a3ae996fa73a6968cd388ad0049203281440266 |