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 splash import Splash

logger = Splash(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 = Splash(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.0.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.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: croustiistuff-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 80b512d2f217f80b2ffc2bd0a7ed51b33a34f62e52dcaf170351d1324f85b676
MD5 e43ba578e06fe7bb16e3dcd4573c5e6b
BLAKE2b-256 5601560ecef3e35616ee97880757f4ec7d64d00660420d833e4d4c3da2e55e8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: croustiistuff-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a058cce7d625ba7745d3e5b69c1fbbbeef7e62ce00efedab0a83c685297490dd
MD5 7c4ce931c67a50698638e6db4df3b0b0
BLAKE2b-256 a2cba396f204a4f7fbc9163085809f5e9099c10bc0dc17d9e713d427da70cdcb

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