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

Metadata

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 Provenance Actions
logger-config-0.3.tar.gz 2.8 kB Without provenance Details for logger-config-0.3.tar.gz

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

Security for logger-config 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

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