Lightweight, modular logger that can write to console and file.
Project description
SwiftLog
Lightweight, modular logger that can write to console and file.
Features
- advanced timestamps
- classic error levels
- object-based
- customizable
Installation
Install SwiftLog with pip
pip install SwiftLog
Usage/Examples
from SwiftLog import Logger
logger = Logger(module_name = 'app')
logger.log(level_name = 'debug', message = 'app is starting...')
logger.INFO(message = 'app is started.')
[2025-12-09] [14:10:55] [debug] [app]: app is starting...
[2025-12-09] [14:10:55] [INFO] [app]: app is started.
Authors
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
swiftlog-1.0.0.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
File details
Details for the file swiftlog-1.0.0.tar.gz.
File metadata
- Download URL: swiftlog-1.0.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e03df12053dc29d70908b9fff1ae96fcf7e854b076178a803a8403119ecc7e0
|
|
| MD5 |
02817174a623fbb9a3354d39ebaedfbe
|
|
| BLAKE2b-256 |
0b27d53df7134d8912b83e616f18922fe7190593539b8c0ca077417229d9060a
|
File details
Details for the file swiftlog-1.0.0-py3-none-any.whl.
File metadata
- Download URL: swiftlog-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b9140ebbbc97af3c1da0f3c7777df68fb78aa511e6352cba21f73b80eafe552
|
|
| MD5 |
a5a77e9862035713026a1e51a0529863
|
|
| BLAKE2b-256 |
acd8f43aa8b09e20a860142b68a0b4c065a37931a32c258a17cb355fe18596b7
|