Documentation
¶
Index ¶
- func ErrorErrs(logger *zerolog.Logger, err error, msg string)
- func SetGlobalLogger(ctx context.Context, l zerolog.Level, w io.Writer)
- func TraceErrs(logger *zerolog.Logger, err error, msg string)
- func WarnErrs(logger *zerolog.Logger, err error, msg string)
- func WithLocalScope(ctx context.Context, logger zerolog.Logger, localScope string) zerolog.Logger
- func WithScope(logger zerolog.Logger, scope string) zerolog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorErrs ¶
ErrorErrs tries to unwrap an error and prints each error separately. If the error is not joined, it logs the single error normally.
func SetGlobalLogger ¶
SetGlobalLogger creates and configures the global zerolog.Logger instance based on the application configuration.
func WithLocalScope ¶
Types ¶
This section is empty.