Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultRequestIDKey = "X-Request-ID"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogger ¶
type AppLogger struct {
// contains filtered or unexported fields
}
AppLogger is a zerolog-based implementation of Logger.
type Event ¶
type Event interface {
Str(key, val string) Event
Int(key string, val int) Event
Interface(key string, val interface{}) Event
Dur(key string, val time.Duration) Event
Err(err error) Event
Msg(msg string)
Send()
}
Event defines the interface for log event building with method chaining.
Click to show internal directories.
Click to hide internal directories.