Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileMode = 0o600 MinIntervalWarn = 500 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrontendHandler ¶ added in v1.0.0
type FrontendHandler struct {
// contains filtered or unexported fields
}
FrontendHandler is a slog.Handler that forwards records to the frontend while delegating to an inner handler for normal logging.
func NewFrontendHandler ¶ added in v1.0.0
func NewFrontendHandler(inner slog.Handler, emitter LogEmitter, debug bool) *FrontendHandler
type LogEmitter ¶ added in v1.0.0
type LogEmitter interface {
EmitLog(entry LogEntry)
}
LogEmitter sends log entries to the frontend.
Click to show internal directories.
Click to hide internal directories.