Skip to main content

A customizable logging package

Project description

EchoLog

EchoLog 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", blah="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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

CroustiiLog-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: CroustiiLog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c845302bcb7799d466e0f682eea573a26ac88630a75de4f29b1a37803ddf9029
MD5 c09ce93de8ac10b962891bc94fec26eb
BLAKE2b-256 057cff870b0b69e2765952429d2528335ef8cf60ee167a0459d5f338b848666f

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