A simple file logger configuration for Python
Project description
ems-simple-logger-config
This is a simple (file) logger configuration for Python.
Installation:
pip install ems-simple-logger-config
On app level: Initialize logger with default values:
import logger
log = logger.setup_logger()
log.info('Some text')
On app level: Alternatively initialize logger with some configuration
import logger
log = logger.setup_logger(logger_name = 'SomeLoggerName', log_level = logging.DEBUG, file_name = 'log.txt')
log.info('Some text')
On module level get the logger by
log = logger.get_logger(__name__)
log.info('Some text')
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
Built Distribution
Close
Hashes for ems-simple-logger-config-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab82f4c5f8ed541efb7a1a5d4dfd4abdd782a8610d6fddaf00ac743d9ad02fba |
|
MD5 | 78db4e8d06ab25318df3f10f6b85af52 |
|
BLAKE2b-256 | 18527a1916043c730371b3db13066837ffa567005997ffd5b45af311154127d9 |
Close
Hashes for ems_simple_logger_config-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af2f47a80f96e4a69db44cf542e85fb9bf22f323759baff2d3c7f3112483eca |
|
MD5 | 283053945eade05ca35b03f3c0da64d3 |
|
BLAKE2b-256 | dc3f09c7756dd3fa78a32a98b6a0a17e963d22546764dd7bdfca60aff66240e2 |