Versions in this module Expand all Collapse all v0 v0.5.0 Nov 24, 2026 v0.4.0 Nov 21, 2026 Changes in this version + func RegisterRoutes(api huma.API, sys *System) + func RegisterRoutesWithDocker(api huma.API, sys *System, docker *DockerLogsReader) + type Config struct + BufferSize int + Format string + Level string + Output *os.File + Service string + type DockerLogsReader struct + ContainerID string + SocketPath string + func NewDockerLogsReader() *DockerLogsReader + func (r *DockerLogsReader) Available() bool + func (r *DockerLogsReader) FetchLogs(ctx context.Context, opts FetchOptions) ([]Entry, error) + type Entry struct + Fields map[string]any + Level string + Message string + Time time.Time + type FetchOptions struct + Since time.Time + Tail int + type LevelKnob struct + func NewLevelKnob(level string) *LevelKnob + func (k *LevelKnob) Set(level string) error + func (k *LevelKnob) String() string + type Plugin interface + Close func(ctx context.Context) error + Handler func() slog.Handler + Name func() string + type RingBuffer struct + func NewRingBuffer(size int) *RingBuffer + func (rb *RingBuffer) Add(e Entry) + func (rb *RingBuffer) Entries() []Entry + func (rb *RingBuffer) Len() int + type System struct + Buffer *RingBuffer + Level *LevelKnob + Service string + func New(cfg Config) (*slog.Logger, *System) + func (s *System) Add(p Plugin) + func (s *System) Close(ctx context.Context) + type TeeHandler struct + func NewTeeHandler(buf *RingBuffer, sinks ...slog.Handler) *TeeHandler + func (h *TeeHandler) AddSink(s slog.Handler) + func (h *TeeHandler) Enabled(ctx context.Context, level slog.Level) bool + func (h *TeeHandler) Handle(ctx context.Context, r slog.Record) error + func (h *TeeHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *TeeHandler) WithGroup(name string) slog.Handler