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.1.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file croustiistuff-0.1.1.tar.gz.
File metadata
- Download URL: croustiistuff-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ec676d54563e9f7581adb8d34bfc21041f377adc806592207cf9bb0236ce7df
|
|
| MD5 |
6366aab1f1b64d527a268e46a42611b6
|
|
| BLAKE2b-256 |
88f9985ea20d50702e99448c072675472cb8a0f090386d0aa2493ce66708fbd7
|
File details
Details for the file croustiistuff-0.1.1-py3-none-any.whl.
File metadata
- Download URL: croustiistuff-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e727e4f5d7e5916944c3f4d32ec117bbd8243f60f16280d0a91036ac9c6064a2
|
|
| MD5 |
ef6ef24247075113d92f78973e469ba7
|
|
| BLAKE2b-256 |
2497c683481d4dae9e17782f1a82ae783292260a1f5736f3c6897efa2dce17dc
|