Colorised logger for python, using logging python lib
Project description
MeowthPxnk Cxstom logger for python!
How this works:
Logs will be steram to console and save to rollover every hour at 00 minutes:
savepath -> ./Logs/YYYY-MM-DD
/HH.00-HH.00
.log
Usage:
import logging
from MeowthLogger import Logger
logger = Logger()
# usage logger ---->
logger.info("INFO")
logger.error("ERROR")
logger.debug("DEBUG")
logger.warning("WARNING")
logger.critical("CRITICAL")
Initialisation arguments:
- logger_level - level of logging
- path - logs folder path
- filename - logging filename
- encoding - encoding for log ro files
- use_uvicorn - bool argument, need to use logger with uvicorn
Example:
logger = Logger(
path="user/logs",
filename="logging.log",
encoding="utf-8"
)
Usage with dependencies:
Uvicorn -
logger = Logger(use_uvicorn=True)
$XOXO$ meowthpxnk
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
meowthlogger-2.0.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file meowthlogger-2.0.tar.gz
.
File metadata
- Download URL: meowthlogger-2.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0087a4fe97b8d4a790d783740d4f17722c4ebbb3f422f96e98dbfeb3ba00e03f |
|
MD5 | cf8514c00379f21b7d42fc085a6d25d5 |
|
BLAKE2b-256 | 95dbb22387ed7fc708eaecfab2c14331e1b230024e86697f844a18b96cc67bfd |
File details
Details for the file meowthlogger-2.0-py3-none-any.whl
.
File metadata
- Download URL: meowthlogger-2.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c15b8fc1af594b1f2f1648413f20bd960da1349948e79363269736f5180db323 |
|
MD5 | 7fac771c984f0742ac134333432aca48 |
|
BLAKE2b-256 | 29aae3ce76e4bdb32712783ce6054c0f6d95c4ec34decac929ad223c71c88228 |