MCPcopy Index your code
hub / github.com/SamNet-dev/snix / stdoutLogger

Struct stdoutLogger

cmd/snix/engine_linux.go:20–20  ·  view source on GitHub ↗

stdoutLogger adapts io.Writer to engine.Logger with Printf-style lines.

Source from the content-addressed store, hash-verified

18
19// stdoutLogger adapts io.Writer to engine.Logger with Printf-style lines.
20type stdoutLogger struct{ w io.Writer }
21
22func (l stdoutLogger) Debugf(f string, args ...any) { fmt.Fprintf(l.w, "DEBUG "+f+"\n", args...) }
23func (l stdoutLogger) Infof(f string, args ...any) { fmt.Fprintf(l.w, f+"\n", args...) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected