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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: meowthlogger-2.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 034809ab96541094596149b6333cecabcaf90150fb7a9bf85a6b8fc377a448ba
MD5 05329560ef2a3974b7de2a0273469408
BLAKE2b-256 5eb8d3e111bde00b42bc28b07808f1a9f033837732c562ef2458d34f41436035

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meowthlogger-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 44c825db8710d06b5f7b229246a75304696c1a0abfeb850b90f3ad77e2b2b947
MD5 04be06f9fece791ab9de630dca51d17e
BLAKE2b-256 10b942b77d8cce0592903e008c642ac6074ffda98223a575504039a2524bb483

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