Skip to main content

Versatile logging library.

Project description

What is VersaLog.py?

PyPI version Downloads Python 3.8+ License Discord

What is VersaLog.py? VersaLog is a powerful and flexible logging library for Python. It supports everything from simple usage to advanced, highly customizable configurations to meet a wide range of needs.

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)
```                                                                                                    |

## Log save

[2025-08-06 04:10:36][INFO] : ok

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

versalog-2.5.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

versalog-2.5.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file versalog-2.5.2.tar.gz.

File metadata

  • Download URL: versalog-2.5.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for versalog-2.5.2.tar.gz
Algorithm Hash digest
SHA256 754021e1606411e0a3302b0a38af82e18ec0f2f74b5f9f9a75f25a857b66d199
MD5 d808a2685a94de30710219c412dece46
BLAKE2b-256 0163a673e7e5337af792972f8c92b31b39ff93783ff49706093b333de9a96d86

See more details on using hashes here.

File details

Details for the file versalog-2.5.2-py3-none-any.whl.

File metadata

  • Download URL: versalog-2.5.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for versalog-2.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 526702be1e0cc5546b6c84e0c201b8bffbaf14e331ac288f2aa9367bef2f6bbf
MD5 407aa4840ffd6107bf70e9ac14680bc5
BLAKE2b-256 8f07a4f8a4b8b3155d3915057adc89218d8f59e6b0edc6cbd7b8bd397f94e842

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