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.1.1.tar.gz
(2.3 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.1.1.tar.gz.
File metadata
- Download URL: swiftlog-1.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
549d542f2249cc9ab28ddb084afe7febfbb02264a713cb9ac070c9efc1bb703d
|
|
| MD5 |
bcccfee99f83f629ee2314fb994a4120
|
|
| BLAKE2b-256 |
b1a5a6a92f764b37cb996aee742ef6d4e8704dd2af721b1d7523d3a7d4e3ff94
|
File details
Details for the file swiftlog-1.1.1-py3-none-any.whl.
File metadata
- Download URL: swiftlog-1.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 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 |
6124622e692f4b1cd07061cf6bbbbde3ca07803f7e22a63a545a2b70addb8465
|
|
| MD5 |
438b01a729aa73e463c252d9f71bae85
|
|
| BLAKE2b-256 |
45777efe9aaac3cf1ed74c298b5d30ff9d30302d8f0d89aa3ff358fab3a2baf5
|