Skip to main content

A customizable logging package

Project description

CroustiiLog

CroustiiLog is a customizable logging package for Python that allows you to log messages with timestamps and different log levels such as INFO, DEBUG, ERROR, and SUCCESS. It also supports custom formatting and colorization for a more aesthetic and practical logging experience.

Features

  • Colored logging output with customizable colors.
  • Customizable log format (e.g., with or without timestamps).
  • Multiple log levels: INFO, DEBUG, ERROR, SUCCESS, FATAL.
  • Support for key-value logging.
  • Tree-style vertical logging for structured data.

Installation

You can install CroustiiLog via pip:

pip install CroustiiLog



from croustiilog import CustomLog

# Create a CustomLog instance
log = CustomLog()

# Log with different levels
log.info("This is an info log.")
log.debug("This is a debug log.")
log.error("This is an error log.")
log.success("This is a success log.")
log.fatal("This is a fatal log.")


log.log("Retrieved", code="6969")


from colorama import Fore

log = CustomLog(color_map={
    "INFO": Fore.BLUE,
    "DEBUG": Fore.YELLOW,
    "ERROR": Fore.RED,
    "SUCCESS": Fore.GREEN,
    "FATAL": Fore.MAGENTA
})

log.info("This is a blue info log.")
log.error("This is a red error log.")

log = CustomLog(log_format="{timestamp} LEVEL > message")

log.info("This is a custom formatted info log.")

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

CroustiiLog-0.1.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CroustiiLog-0.1.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file CroustiiLog-0.1.1.tar.gz.

File metadata

  • Download URL: CroustiiLog-0.1.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for CroustiiLog-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3776794748d7a50f52c846b22d3d3fef822955334eb9235650e13a273554c65b
MD5 42292061c2f18d35befb2b8bd4d5f566
BLAKE2b-256 d1ac2aabec8876d37a74e02cff87dc39c0abb46a715996f3b23984f82660f178

See more details on using hashes here.

File details

Details for the file CroustiiLog-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: CroustiiLog-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for CroustiiLog-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66bc1baad413f4a3b746b439f3949254f0cab280456205aefeb69bcd97683ee5
MD5 ff78597e9eefe2ddaeb4e02d31e37d3e
BLAKE2b-256 07875fd020f335f05b541f4dfdf416d894152155969585fbc7f53e9a400433aa

See more details on using hashes here.

Supported by

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