Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelDebug = Level(slog.LevelDebug) LevelInfo = Level(slog.LevelInfo) LevelWarn = Level(slog.LevelWarn) LevelError = Level(slog.LevelError) )
logging categories in use
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is responsible for logging the messages
func NewWithEvents ¶
func NewWithEvents(w io.Writer, minLevel Level, serviceName string, traceIDFunc TraceIDFunc, events Events) *Logger
NewWithEvents constructs a Logger for application use with events.
type TraceIDFunc ¶
TraceIDFunc is a declaration for a function that returns the trace id from the passed context
Click to show internal directories.
Click to hide internal directories.