MCPcopy
hub / github.com/jaypipes/ghw / Handle

Method Handle

internal/config/log.go:55–64  ·  view source on GitHub ↗
(
	ctx context.Context,
	r slog.Record,
)

Source from the content-addressed store, hash-verified

53}
54
55func (h *simpleHandler) Handle(
56 ctx context.Context,
57 r slog.Record,
58) error {
59 level := r.Level.String() + ":"
60
61 h.l.Printf("%-6s %s", level, r.Message)
62
63 return nil
64}
65
66// WithLogLevel allows overriding the default log level of WARN.
67func WithLogLevel(level slog.Level) Modifier {

Callers 3

InfoFunction · 0.80
WarnFunction · 0.80
DebugFunction · 0.80

Calls 2

PrintfMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected