Documentation ¶
Index ¶
- func Debug(msg string, loggerProv LoggerProvider, args ...any)
- func Err(err any, loggerProv LoggerProvider, lvl slog.Level, args ...any) error
- func Error(msg string, loggerProv LoggerProvider, args ...any)
- func Info(msg string, loggerProv LoggerProvider, args ...any)
- func IsErr(err error, loggerProv LoggerProvider, lvl slog.Level, args ...any) bool
- func Log(msg string, logger *slog.Logger, lvl slog.Level, skip int, args ...any)
- func TimeIt(fn func() error, msg string, loggerProv LoggerProvider, args ...any) error
- func TimeIt2[T any](fn func() (T, error), msg string, loggerProv LoggerProvider, args ...any) (T, error)
- func Warn(msg string, loggerProv LoggerProvider, args ...any)
- type LoggerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, loggerProv LoggerProvider, args ...any)
func Error ¶
func Error(msg string, loggerProv LoggerProvider, args ...any)
func Info ¶
func Info(msg string, loggerProv LoggerProvider, args ...any)
func TimeIt ¶
func TimeIt(fn func() error, msg string, loggerProv LoggerProvider, args ...any) error
func Warn ¶
func Warn(msg string, loggerProv LoggerProvider, args ...any)
Types ¶
type LoggerProvider ¶
func Prov ¶
func Prov(logger *slog.Logger) LoggerProvider
Click to show internal directories.
Click to hide internal directories.