Skip to main content

What is VersaLog.py?

PyPI version Downloads Python 3.8+ License Discord

What is VersaLog.py?

VersaLog is a modern, powerful, and flexible logging library for Python. It supports everything from simple usage to advanced, highly customizable configurations, making it suitable for a wide range of use cases.

Feature

Basic Logging

  • Supports standard log levels:
    • INFO, ERROR, WARNING, DEBUG, CRITICAL
  • Colored output for better readability
  • Symbol-based prefixes (e.g. [+], [-], [!])

Multiple Output Formats

Easily switch between different log styles:

  • simple → [+] message
  • simple2 → [TIME] [+] message
  • detailed → [TIME][LEVEL] : message
  • file → [FILE:LINE][LEVEL] message

Tag System

  • Add custom tags to logs
  • Supports multiple tags (e.g. ["API", "AUTH"])
  • Optional default tags

File & Line Tracking

  • Display caller file name and line number
  • Useful for debugging large projects

Log File Saving

  • Automatically save logs to files
  • Output path: ./log/YYYY-MM-DD.log
  • Select which log levels to save

Auto Cleanup

  • Automatically deletes old log files (default: 7 days)
  • Keeps your log directory clean

Auto Cleanup

  • Disable console output
  • Useful for background services

Exception Handling

  • Automatically captures unhandled exceptions
  • Logs them as CRITICAL

Desktop Notifications

  • Optional desktop alerts for errors and critical logs
  • Uses plyer.notification

Asynchronous Logging

  • Non-blocking log processing using threads and queues
  • Improves performance in high-load environments

Support

Join our Discord server for support, questions, and community discussions:

Discord

Installation

pip install VersaLog

Enum

Enum Description
detailed Logs including execution time and log levels
file Logs with filename and line number
simple Simple and easy-to-read logs
simple2 Simple and easy-to-read log format. The timestamp is automatically included.

Options

Options Description
show_file True : Display filename and line number (for simple and detailed modes)
show_tag True : Show self.tag if no explicit tag is provided
tag Default tag to use when show_tag is enabled
enable_all Shortcut to enable both show_file and show_tag
notice True : When an error or critical level log is output, a desktop notification (using plyer.notification) will be displayed. The notification includes the log level and message.
all_save True : When an error or critical level log is output, the log will be saved to a file.
save_levels A list of log levels to save. Defaults to ["INFO", "ERROR", "WARNING", "DEBUG", "CRITICAL"].
silent True : Suppress standard output (print)
catch_exceptions True : Automatically catch unhandled exceptions and log them as critical

Tag set

# one tag
logger = VersaLog(enum="detailed", tag="a", show_tag=True)

# two tag
logger = VersaLog(enum="detailed", tag=["a", "a"], show_tag=True)
```

Metadata

Release files for VersaLog 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for VersaLog 3.0.0
File Size Uploaded Provenance Actions
versalog-3.0.0.tar.gz 10.8 kB Without provenance Details for versalog-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for VersaLog 3.0.0
File Interpreter ABI Platform Actions
versalog-3.0.0-py3-none-any.whl Python 3 none any Details for versalog-3.0.0-py3-none-any.whl

Total release size: 22.7 kB

Release files / versalog-3.0.0.tar.gz

Download URL versalog-3.0.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b36c9f457e2dbf8930bebe93da3d6b387f2581bf8311e32eb0548d6591078909
BLAKE2b-256 checksum
How to use checksums
c9fed5ea11a1422cd98475143650a943c36051573793369b9e0a787c4f22c46b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Release files / versalog-3.0.0-py3-none-any.whl

Download URL versalog-3.0.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9401ba0a6f71f88b68ede8bfe244d8656f29628cbb2107fdde3573e011362cb2
BLAKE2b-256 checksum
How to use checksums
a46fd77d4b4c51cc6f45c225e5b9aec3d580050dbbfa543449ff4a2406577585
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Security for VersaLog 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page