Versions in this module Expand all Collapse all v0 v0.0.1 Sep 20, 2025 Changes in this version + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelPanic + const LevelTrace + const LevelWarn + var Logger = slog.New(newHandler(os.Stdout, LevelDebug, false, true)) + func Debug(msg string, args ...any) + func DebugContext(ctx context.Context, msg string, args ...any) + func EnableConsole(logLevel slog.Level, logSource bool, logColour bool) + func EnableLogFile(logLevel slog.Level, logSource bool, folder, filename string, ...) + func EnableLogFile2(logLevel slog.Level, logSource bool, folder, filename string, ...) + func Error(msg string, args ...any) + func ErrorContext(ctx context.Context, msg string, args ...any) + func Fatal(msg string, args ...any) + func FatalContext(ctx context.Context, msg string, args ...any) + func Info(msg string, args ...any) + func InfoContext(ctx context.Context, msg string, args ...any) + func Panic(msg string, args ...any) + func PanicContext(ctx context.Context, msg string, args ...any) + func Trace(msg string, args ...any) + func TraceContext(ctx context.Context, msg string, args ...any) + func Warn(msg string, args ...any) + func WarnContext(ctx context.Context, msg string, args ...any)