package
Version:
v0.2.11
Opens a new window with list of versions in this module.
Published: Apr 12, 2025
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
LevelDebug = "debug"
LevelInfo = "info"
LevelWarning = "warn"
LevelError = "error"
LevelFatal = "fatal"
)
func Debug(format string, v ...interface{})
Debug logs a debug message
func Error(format string, v ...interface{})
Error logs an error message
func Fatal(format string, v ...interface{})
Fatal logs a fatal message and exits
func Info(format string, v ...interface{})
Info logs an info message
Setup initializes the global logger
func Warn(format string, v ...interface{})
Warn logs a warning message
Logger is a custom logger that broadcasts to WebSocket and writes to file
GetLogger returns the global logger instance
Write implements io.Writer interface for capturing standard log output
Source Files
¶
Click to show internal directories.
Click to hide internal directories.