Documentation
¶
Overview ¶
Package runtime provides reconfigurable DevLogBus controls for Go applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements slog.Handler for a Runtime.
type Options ¶
type Options struct {
Enabled bool
Endpoint string
Network string
Address string
SocketPath string
Source string
Level slog.Leveler
QueueSize int
PublishTimeout time.Duration
Filter client.RecordFilter
Redactor client.RecordRedactor
}
Options configures a DevLogBus runtime.
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime owns the reconfigurable DevLogBus publisher used by its slog handler.
func (*Runtime) Disable ¶
func (r *Runtime) Disable()
Disable turns DevLogBus publishing off and closes the current publisher.
func (*Runtime) SetEndpoint ¶
SetEndpoint changes the DevLogBus broker endpoint. An empty endpoint resets the runtime to its configured transport fields or the default local socket.
Click to show internal directories.
Click to hide internal directories.