No project description provided
Project description
logger-config: Configurable and flexible logger for your python applications
Description
The logger-config package is a basic configurable logger. This package is currently tested on Python =< 2.7. This package worked on multithreding mode
Installation
pip install logger-config
or
download the latest release
_ and run
python setup.py install
Usage
import logging
from logger_config import configure_logging
logger_name = 'root_logger'
configure_logging(logger_name, log_dir='logs', log_level=logging.DEBUG)
logger = logging.getLogger(logger_name)
logger.warning('This is warning')
logger.error('This is exception')
logger.info('This is info message')
logger.debug('This is debug message')
Console Output
[2022-01-07 22:41:52,153] [MainThread] [WARNING] This is warning
[2022-01-07 22:41:52,153] [MainThread] [ERROR] This is exception
[2022-01-07 22:41:52,153] [MainThread] [INFO] This is info message
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logger-config-0.3.tar.gz
(2.8 kB
view details)
File details
Details for the file logger-config-0.3.tar.gz
.
File metadata
- Download URL: logger-config-0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0a1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 840f729ffe1c1b860c1056ae8ef034aeeb1e7453f086e6db24c3576fcdc8ba01 |
|
MD5 | 7ffb77dad72ef847ffc3bb33c069dee4 |
|
BLAKE2b-256 | e57e66f6d2912ab1dcb67b22d8cfca5e38566661e389a25f3243ed3d312743a9 |