Versions in this module Expand all Collapse all v0 v0.14.0 Jan 2, 2026 Changes in this version + const ComponentDaemonSSE + const ComponentGraphManager + const ComponentMCPServer + const ComponentSSEClient + const DefaultCompress + const DefaultMaxAge + const DefaultMaxBackups + const DefaultMaxSize + const FieldClientID + const FieldClientName + const FieldClientType + const FieldClientVersion + const FieldComponent + const FieldProcessID + const FieldRequestID + const FieldSessionID + const FieldTraceID + const HeaderClientID + const HeaderClientType + const HeaderClientVersion + func CreateLogDir(logFilePath string) error + func FromContext(ctx context.Context, fallback *slog.Logger) *slog.Logger + func IsValidUUIDv7(id string) bool + func NewClientID() string + func NewLogger(opts ...LoggerOption) (*slog.Logger, *lumberjack.Logger, error) + func NewProcessID() string + func NewRotatingWriter(filename string) *lumberjack.Logger + func NewRotatingWriterWithConfig(filename string, cfg RotationConfig) *lumberjack.Logger + func NewSessionID() string + func ParseLogLevel(level string) (slog.Level, error) + func ProcessIDFromContext(ctx context.Context) (string, bool) + func WithClientInfo(logger *slog.Logger, name, version string) *slog.Logger + func WithComponent(logger *slog.Logger, component string) *slog.Logger + func WithDaemonSSE(logger *slog.Logger, clientID, clientType, clientVersion string) *slog.Logger + func WithLogger(ctx context.Context, logger *slog.Logger) context.Context + func WithMCPProcess(logger *slog.Logger, processID string) *slog.Logger + func WithProcessID(logger *slog.Logger, processID string) *slog.Logger + func WithProcessIDContext(ctx context.Context, processID string) context.Context + func WithSSEClient(logger *slog.Logger) *slog.Logger + func WithSessionID(logger *slog.Logger, sessionID string) *slog.Logger + type HandlerType int + const HandlerJSON + const HandlerText + type LoggerConfig struct + Handler HandlerType + LogFile string + LogLevel string + Outputs []io.Writer + type LoggerOption func(*LoggerConfig) + func WithAdditionalOutputs(writers ...io.Writer) LoggerOption + func WithHandler(handler HandlerType) LoggerOption + func WithLogFile(path string) LoggerOption + func WithLogLevel(level string) LoggerOption + type RotationConfig struct + Compress bool + MaxAge int + MaxBackups int + MaxSize int + func DefaultRotationConfig() RotationConfig