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.0.0.tar.gz (2.1 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.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for swiftlog-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e03df12053dc29d70908b9fff1ae96fcf7e854b076178a803a8403119ecc7e0
MD5 02817174a623fbb9a3354d39ebaedfbe
BLAKE2b-256 0b27d53df7134d8912b83e616f18922fe7190593539b8c0ca077417229d9060a

See more details on using hashes here.

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

Hashes for swiftlog-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b9140ebbbc97af3c1da0f3c7777df68fb78aa511e6352cba21f73b80eafe552
MD5 a5a77e9862035713026a1e51a0529863
BLAKE2b-256 acd8f43aa8b09e20a860142b68a0b4c065a37931a32c258a17cb355fe18596b7

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