Skip to main content

Logging package for my need

Project description

Croustiistuff - Stuff I need for my projects

Features

  • Color-coded logging for better visibility
  • Two modes: Classic (detailed) and Minimal (clean)
  • Customizable separators in Minimal mode
  • Debug mode support

Installation

pip install croustiistuff

Usage

Basic Example

from croustiistuff import Logger

logger = Logger(prefix="MyApp")

logger.success("Operation completed successfully!")
logger.warning("This is a warning message!")
logger.info("Informational message.")
logger.error("An error occurred!")
logger.debug("This is a debug message.")

Changing Modes

logger = Logger(mode="minimal", separator=" - ")
logger.info("This is a minimal log message")

Example Output

Classic Mode (Default)

[MyApp] | [12:34:56] | [SCC] -> [Operation completed successfully!]
[MyApp] | [12:34:56] | [WRN] -> [This is a warning message!]
[MyApp] | [12:34:56] | [INF] -> [Informational message.]
[MyApp] | [12:34:56] | [ERR] -> [An error occurred!]

Minimal Mode

12:34:56 [INF] - Informational message.

License

This project is licensed under the MIT License.

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

croustiistuff-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

croustiistuff-0.1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file croustiistuff-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for croustiistuff-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3fe07663c9dcdeffdff2efaeefebc0cc15710b7598ea79631976f0eb7b6a2547
MD5 bcbc83bc037f6058c7bad4b82340cc8d
BLAKE2b-256 e195e53bf9e336cd9f517bcd7560bf61355be67806a356bc9a32de94cbaf95c5

See more details on using hashes here.

File details

Details for the file croustiistuff-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for croustiistuff-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f8446bec7936644f0c97265e6aaf20bf2fda01ff19afdd78a7fc1a63afe8dcd3
MD5 50b2622a3973a84ed39f0f837cd7d465
BLAKE2b-256 cefc9121d89752cac2697441a4a449e4dcb724132710f3639b342a06498216dc

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