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

Method Warn

slog.go:93–95  ·  view source on GitHub ↗

Warn logs the msg and fields at LevelWarn.

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

Source from the content-addressed store, hash-verified

91
92// Warn logs the msg and fields at LevelWarn.
93func (l Logger) Warn(ctx context.Context, msg string, fields ...Field) {
94 l.log(ctx, LevelWarn, msg, fields)
95}
96
97// Error logs the msg and fields at LevelError.
98//

Callers 3

TestLoggerFunction · 0.80
TestExitFunction · 0.80
TestVisualFunction · 0.80

Calls 1

logMethod · 0.95

Tested by 3

TestLoggerFunction · 0.64
TestExitFunction · 0.64
TestVisualFunction · 0.64