A simple logging library
Project description
silog
silog is a simple logging library for Python. Designed to no worries about the underlying log file management.
Features
- Automatic rotation of log files based on the date, ensuring that log files are organized by day.
- Singleton pattern to ensure only one instance of the logger is created, making it easy to use across your application.
- Simple interface for logging messages at various severity levels (DEBUG, INFO, WARNING, ERROR, CRITICAL).
Installation
You can install silog directly from PyPI:
pip install silog
Usage
To use silog in your project, import the 'Silog' class and initialize it with your desired log directory.
from silog import Silog
# initialize logger
logger = Silog("logs")
# log message
logger.info("log message")
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
silog-0.1.3.tar.gz
(2.1 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
silog-0.1.3-py3-none-any.whl
(2.4 kB
view details)
File details
Details for the file silog-0.1.3.tar.gz.
File metadata
- Download URL: silog-0.1.3.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd45cd87c58a161fa208ea92915fcbd174aac1056db209140c5127457354896b
|
|
| MD5 |
21664e59ede366217fee3af6dd5457b0
|
|
| BLAKE2b-256 |
1e0826748d493e92af8cc5cdbb77984c5d1b585696d447ad26bf7dc4e145f14c
|
File details
Details for the file silog-0.1.3-py3-none-any.whl.
File metadata
- Download URL: silog-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50939e3c080bcb24345a334929e058fcc26e42f69e8f0372a78180dd2bb9b2c7
|
|
| MD5 |
f32aa427c74b9ac79c140e570cb6e8b2
|
|
| BLAKE2b-256 |
11fcd999ad3064bd9276da2ec91853e5c4d05c396c2c5e789b545054075f7296
|