Documentation ¶
Index ¶
- Constants
- func Debug(args ...any)
- func Debugf(template string, args ...any)
- func Debugw(msg string, keyvalues ...any)
- func Error(args ...any)
- func Errorf(template string, args ...any)
- func Errorw(err error, msg string)
- func Fatal(args ...any)
- func Fatalf(template string, args ...any)
- func FormatProto(arg protoreflect.ProtoMessage) string
- func GooseLogger() *gooseLogger
- func Info(args ...any)
- func Infof(template string, args ...any)
- func Infow(msg string, keyvalues ...any)
- func Init(level, output string, errorOutput io.Writer)
- func Level() string
- func Logger() *zerolog.Logger
- func Monitor(msg string, args map[string]any)
- func Warn(args ...any)
- func Warnf(template string, args ...any)
- func Warnw(msg string, keyvalues ...any)
Constants ¶
View Source
const ( LogLevelDebug = "debug" LogLevelInfo = "info" LogLevelWarn = "warn" LogLevelError = "error" )
Variables ¶
This section is empty.
Functions ¶
func FormatProto ¶
func FormatProto(arg protoreflect.ProtoMessage) string
func GooseLogger ¶ added in v1.9.0
func GooseLogger() *gooseLogger
GooseLogger provides access to a goose compatible logger, hardcoded to log messages as Debug level
func Monitor ¶ added in v1.4.0
Monitor is a wrapper around Info that allows passing a map of key-value pairs. This is useful for structured logging and monitoring. The caller information is skipped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.