Skip to main content

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:

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


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.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

meowthlogger-2.0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file meowthlogger-2.0.1.tar.gz.

File metadata

  • Download URL: meowthlogger-2.0.1.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

Hashes for meowthlogger-2.0.1.tar.gz
Algorithm Hash digest
SHA256 b59955c2ec7773eef227af327fb2c1c63575efa73ddbc3647b80e1b27a1d0133
MD5 db353fc89d6dabccd045730c69334d8f
BLAKE2b-256 9885511ae7a455a015063e11dbf828eeb5608af8a97bc1fd2e00545be2a8ac05

See more details on using hashes here.

File details

Details for the file meowthlogger-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for meowthlogger-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 699986df95e8dbcf925a6ffc1266e9dbc6339c11dd4ba2f5e42a87e06664f9cc
MD5 9e5e8c351cd39898c2db58f56f93d28f
BLAKE2b-256 99c840bdc0150c223d55accd6c999e088d672af26bea277dbc961d8f967557ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page