Skip to main content

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

Release files for logger-config 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logger-config 0.3
File Size Uploaded
logger-config-0.3.tar.gz 2.8 kB Details

Release files / logger-config-0.3.tar.gz

Download URL logger-config-0.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
840f729ffe1c1b860c1056ae8ef034aeeb1e7453f086e6db24c3576fcdc8ba01
BLAKE2b-256 checksum
How to use checksums
e57e66f6d2912ab1dcb67b22d8cfca5e38566661e389a25f3243ed3d312743a9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page