Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StdLogger = New(
logPrintln("ERROR"),
logPrintln("INFO"),
logPrintln("DEBUG"),
)
)
Functions ¶
This section is empty.
Types ¶
type SimpleLogger ¶
type SimpleLogger struct { ErrorFunc func(...any) InfoFunc func(...any) DebugFunc func(...any) Level int }
func New ¶
func New(errorFunc, infoFunc, debugFunc func(...any)) *SimpleLogger
func (*SimpleLogger) Debug ¶
func (l *SimpleLogger) Debug(args ...any)
func (*SimpleLogger) Error ¶
func (l *SimpleLogger) Error(args ...any)
func (*SimpleLogger) Info ¶
func (l *SimpleLogger) Info(args ...any)
func (*SimpleLogger) Loglevel ¶
func (l *SimpleLogger) Loglevel(level LogLevel)
Click to show internal directories.
Click to hide internal directories.