MCPcopy Index your code
hub / github.com/coder/slog / Debug

Method Debug

slog.go:83–85  ·  view source on GitHub ↗

Debug logs the msg and fields at LevelDebug.

(ctx context.Context, msg string, fields ...Field)

Source from the content-addressed store, hash-verified

81
82// Debug logs the msg and fields at LevelDebug.
83func (l Logger) Debug(ctx context.Context, msg string, fields ...Field) {
84 l.log(ctx, LevelDebug, msg, fields)
85}
86
87// Info logs the msg and fields at LevelInfo.
88func (l Logger) Info(ctx context.Context, msg string, fields ...Field) {

Callers 5

TestLoggerFunction · 0.80
ExampleLogger_LeveledFunction · 0.80
TestExitFunction · 0.80
TestVisualFunction · 0.80
DebugFunction · 0.80

Calls 1

logMethod · 0.95

Tested by 4

TestLoggerFunction · 0.64
ExampleLogger_LeveledFunction · 0.64
TestExitFunction · 0.64
TestVisualFunction · 0.64