Documentation ¶
Index ¶
- Variables
- func Debug() *zerolog.Event
- func Error() *zerolog.Event
- func Fatal() *zerolog.Event
- func Info() *zerolog.Event
- func Initialize(logLevel string) error
- func NewIOWriter(level zerolog.Level) io.Writer
- func NewStdLoggerWithLevel(level zerolog.Level) *stdlog.Logger
- func Panic() *zerolog.Event
- func Trace() *zerolog.Event
- func Warn() *zerolog.Event
- func WithCtx(ctx context.Context) zerolog.Logger
- type LogErrorWriter
- type LogInfoWriter
- type NamespaceHook
Constants ¶
This section is empty.
Variables ¶
View Source
var (
REDACTED = "[REDACTED]"
)
redact sensitive contents from all log fields and message
Functions ¶
func Initialize ¶
func NewIOWriter ¶
NewStdLogger will return an instance of io.Writer where all messages will have the specified level
func NewStdLoggerWithLevel ¶
NewStdLoggerWithLevel will return an instance of *log.Logger where all messages will have the specified level
Types ¶
type LogErrorWriter ¶
type LogErrorWriter struct{}
type LogInfoWriter ¶
type LogInfoWriter struct{}
Click to show internal directories.
Click to hide internal directories.