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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file my-log-handler-0.1.0.tar.gz.
File metadata
- Download URL: my-log-handler-0.1.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a26bce5c0f1b4842e813ff1ab486fd998e7ef04c11683f80730319ef30869b2
|
|
| MD5 |
053562a4d9bb340de73705407ba36865
|
|
| BLAKE2b-256 |
a2944700c5e98cfa4d04faca306e1cef58e3547b4ffca4c9db96a83ff91be868
|
File details
Details for the file my_log_handler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: my_log_handler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51a17f9d7a15c21e71c7a7c257c220a9ec588f40020361f8c88c2e4b02298052
|
|
| MD5 |
ea2ed10f6d6526286f48a4d6abce90b2
|
|
| BLAKE2b-256 |
87fccaa24e2b00a64b1aff9cb438353404e70cb87354abf5f2af0ff0e2769bf6
|