A loging library, intending to simplify the use of logger and easy to configure and implements.
Project description
LogNG
What's this?
A logging library, intending to simplify the use of logger and easy to configure or implement.
Install
pip install logng
How to use
logger
It's a implementation of the ILogger
, with the high configurability.
from logng.logger import Logger, LogConfig
lg = Logger(LogConfig())
lg.info("hello info")
shared
You can implement ILogger
yourself and set the logger here.
from logng.shared import set_logger, info, warn
from logng.logger import Logger, LogConfig
set_logger(Logger(LogConfig(locate_back=1)))
info("hello")
warn("hello")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logng-0.1.1.tar.gz
(4.2 kB
view details)
Built Distribution
logng-0.1.1-py3-none-any.whl
(5.9 kB
view details)
File details
Details for the file logng-0.1.1.tar.gz
.
File metadata
- Download URL: logng-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.9.3.dev3+g67e78942 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54441c2083fec77399ca3568e8e85b27a47c7496a723c9f663ec02600f857152 |
|
MD5 | 954931b43c78292793eb7d8e4a4e461b |
|
BLAKE2b-256 | cb9a82dbbef74f55d4cc2eb55de548109a6e1c68121bfe11942336013c8b9376 |
File details
Details for the file logng-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: logng-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.9.3.dev3+g67e78942 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23a5d934f6573612de4d9cfb7bcb4c9d067630847137cef4a9b51b16db0d8341 |
|
MD5 | 00179c6a7e809ac1ee55d82e9aba900c |
|
BLAKE2b-256 | b59027603af01db947b47c5b9ed716f8651f490ee08c1f05c5c323cd6cf7f6db |