Add basic log functionality.
Project description
logHandler
Project description
logHander is a simple package to create log. I copy paste same file in all of my project. I decided to create thid as a package and simply import it. Currently limited to basic functionality but plans to upgrade it in future.
Features
- Simple add basic log functionality.
- logs to console.
Installation
pip install logHander
Ussage
from logHandler import Logger
Logger('path to log folder', 'log name', [optional] log_level)
# somewhere in the package
import logging
log = logging.getLogger('log name')
log.info("Hello There")
Development
To install logHandler along with tools for developnment and testing run following command.
pip install -e .[dev]
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
my-log-handler-0.1.0.tar.gz
(16.5 kB
view hashes)
Built Distribution
Close
Hashes for my_log_handler-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51a17f9d7a15c21e71c7a7c257c220a9ec588f40020361f8c88c2e4b02298052 |
|
MD5 | ea2ed10f6d6526286f48a4d6abce90b2 |
|
BLAKE2b-256 | 87fccaa24e2b00a64b1aff9cb438353404e70cb87354abf5f2af0ff0e2769bf6 |