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.3.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.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: croustiistuff-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e95be199e80dd9eab060bafc7931d6e22572a0d36e000dbbc9aa4bcb24bea067
MD5 6e0ab4729f45c7a50d9060ca8723227f
BLAKE2b-256 6e8ddd0d92ca9756bb9bfbc7139e56137f6a3deb6f606e78351ecccc329c5940

See more details on using hashes here.

File details

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

File metadata

  • Download URL: croustiistuff-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b94822de4b033581ef3ff873150a6573a5331143d1e0554a43a987fa86337587
MD5 32868b5dc9c6ec9625c5ef47c5a198a4
BLAKE2b-256 227785e255ee5b7c3228a1b8424a6db1a7f5c893c2f9ca6515d4425a40ce8e28

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