VersaLog.go

module
v0.0.0-...-5a6a5b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT

README

What is VersaLog.go?

All Contributors

Go Version Go Report Card Go Reference Downloads

What is VersaLog.go? VersaLog is a powerful and flexible logging library for Golang. 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

go get github.com/VersaLog/VersaLog.go
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(two tag)


logger := versalog.NewVersaLog(
    "detailed",        // enum
    false,             // showFile
    true,              // showTag
    "VersaLog,Core",   // tag(Two items separated by a comma)
    false,             // enableAll
    false,             // notice
    false,             // allSave
    []string{},        // saveLevels
    false,             // silent
    false,             // catchExceptions
)

Log save

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

Contributors ✨

Thanks goes to these wonderful people (emoji key):

ₖₐₑ𝒹ₑ
ₖₐₑ𝒹ₑ

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL