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.1.0.tar.gz (2.2 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.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for swiftlog-1.1.0.tar.gz
Algorithm Hash digest
SHA256 43061c0da39e4df66bce94e5f27b5a1e24ebb4e63fcf3bfe62c263897f90470d
MD5 c183710a5a1c5ddd210ea5192bc86724
BLAKE2b-256 4570af5b27f0bb4d7a16cd4c20032191a45db2a75a5ffcc6558588643bf3afb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swiftlog-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6388d1a16c782622444b25153045f5e8fef35441d3edff05bf2da27581a500a
MD5 0bfc1deeaf92f805813d4c10e92d8f22
BLAKE2b-256 ee6b0906fa8b49048e386d854aae6b42a68316eb81564b00411db385c646cdd8

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