Documentation
¶
Index ¶
- Constants
- func Debug(args ...any)
- func DebugWithFields(msg string, kv map[string]any)
- func Debugf(format string, v ...any)
- func Debugln(args ...any)
- func Error(args ...any)
- func ErrorE(err error)
- func ErrorWithFields(msg string, kv map[string]any)
- func Errorf(format string, v ...any)
- func Errorln(args ...any)
- func Errors(err error)
- func Info(args ...any)
- func InfoWithFields(msg string, kv map[string]any)
- func Infof(format string, v ...any)
- func Infoln(args ...any)
- func Print(v ...any)
- func PrintLogs()
- func Printf(format string, v ...any)
- func Println(v ...any)
- func SetVerboseMode(verbose bool)
- func Slog() *slog.Logger
- func Verbose() bool
- func Warn(args ...any)
- func WarnWithFields(msg string, kv map[string]any)
- func Warnf(format string, v ...any)
- func Warnln(args ...any)
Constants ¶
View Source
const ( DefaultTimeFormat = "15:04:05.000" DefaultCallerSkipFrameCount = 3 // set to 3 because logger wrapped in logger.go NoColor = true UseCaller = false // for developer, if you want to expose line of code of caller )
Variables ¶
This section is empty.
Functions ¶
func DebugWithFields ¶
DebugWithFields function.
func ErrorWithFields ¶
ErrorWithFields function.
func SetVerboseMode ¶
func SetVerboseMode(verbose bool)
func Slog ¶
Slog returns a *slog.Logger that routes through zerolog and is gated on Verbose().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.