Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogHandlerFunc ¶
LogHandlerFunc is a factory that produces an slog.Handler writing to w. Servora calls it once per local backend (stdout / file), providing the appropriate io.Writer. OTel backend is independent and unaffected.
type Option ¶
type Option func(*options)
Option configures logger.New.
func WithLogHandlerFunc ¶
func WithLogHandlerFunc(f LogHandlerFunc) Option
WithLogHandlerFunc replaces the default zerolog encoding engine for stdout and file backends. The factory is called with the io.Writer that servora manages (os.Stdout or lumberjack). OTel is unaffected.
Click to show internal directories.
Click to hide internal directories.