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.1

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.1
File Size Uploaded Provenance Actions
versalog-3.0.1.tar.gz 10.9 kB Without provenance Details for versalog-3.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 23.0 kB

Release files / versalog-3.0.1.tar.gz

Download URL versalog-3.0.1.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1607d2cdb08c74e5e684832c1ee79265e1239ab5d93e631a74c590ab402fb9fd
BLAKE2b-256 checksum
How to use checksums
d05ac67ce24c2b181672df93f87f8d393db8a91c6080dd717384f29af26fb2e6
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.1-py3-none-any.whl

Download URL versalog-3.0.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f36ade6633f2fec7ea6bf110737de6ed9c8616294c98f9503e149e30bf3e4a64
BLAKE2b-256 checksum
How to use checksums
342c141a6039aa3fc1c3dd5d1af02ac3fc68bbd8fb259343df7d283e10018236
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.1

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