Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelDebug = slog.LevelDebug LevelInfo = slog.LevelInfo LevelNotice = slog.LevelInfo + 2 LevelWarn = slog.LevelWarn LevelError = slog.LevelError LevelCrit = slog.LevelError + 4 LevelAlert = slog.LevelError + 8 )
View Source
const LargeMessageSupport = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(opts *HandlerOptions) (*Handler, error)
type HandlerOptions ¶
type HandlerOptions struct { // Level reports the minimum record level that will be logged. // The handler discards records with lower levels. // If Level is nil, the handler assumes LevelDebug. // The handler calls Level.Level for each record processed; // to adjust the minimum level dynamically, use a LevelVar. Level slog.Leveler Socket string }
Click to show internal directories.
Click to hide internal directories.