Skip to main content

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.2.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swiftlog-1.2.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file swiftlog-1.2.0.tar.gz.

File metadata

  • Download URL: swiftlog-1.2.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for swiftlog-1.2.0.tar.gz
Algorithm Hash digest
SHA256 906dace585b6e032d379dbea00b4d25dba1b3c4d2ddbf03c677b55f23199fdec
MD5 58e85d1b33d77733f789730b94ef6d18
BLAKE2b-256 a249d8a252563d19c7bda90aeb3b88256055b39bcb0ec3691598246d256b477f

See more details on using hashes here.

File details

Details for the file swiftlog-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: swiftlog-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for swiftlog-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1004cffa9b1a6e3df8d565bd461fecc53928ae4671b626111d36e7d41fb8987e
MD5 e6642398728c20554d322098a2779791
BLAKE2b-256 c2afe406a5fceccecc56e1e1b25020189593c49cf278db06727fc18e9d081353

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