Documentation
¶
Overview ¶
Package slogformat provides a structured JSON log handler for the unikernel daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONHandler ¶
type JSONHandler struct {
// contains filtered or unexported fields
}
JSONHandler outputs structured JSON lines to a writer. It ensures every log entry has: ts, level, msg, and optional component/vm_id fields.
func NewJSONHandler ¶
func NewJSONHandler(w io.Writer) *JSONHandler
NewJSONHandler creates a handler that writes JSON lines to w.
func (*JSONHandler) Enabled ¶
Enabled returns true for all levels — level filtering is done by slog itself.
Click to show internal directories.
Click to hide internal directories.