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

Method Info

slog.go:88–90  ·  view source on GitHub ↗

Info logs the msg and fields at LevelInfo.

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

Source from the content-addressed store, hash-verified

86
87// Info logs the msg and fields at LevelInfo.
88func (l Logger) Info(ctx context.Context, msg string, fields ...Field) {
89 l.log(ctx, LevelInfo, msg, fields)
90}
91
92// Warn logs the msg and fields at LevelWarn.
93func (l Logger) Warn(ctx context.Context, msg string, fields ...Field) {

Callers 15

httpLogHelperFunction · 0.80
TestLoggerFunction · 0.80
ExampleFunction · 0.80
Example_structFunction · 0.80
Example_multipleFunction · 0.80
ExampleWithFunction · 0.80
ExampleLogger_NamedFunction · 0.80
ExampleLogger_LeveledFunction · 0.80
TestExitFunction · 0.80
Example_marshallerFunction · 0.80
TestMakeFunction · 0.80
TestVisualFunction · 0.80

Calls 1

logMethod · 0.95

Tested by 14

httpLogHelperFunction · 0.64
TestLoggerFunction · 0.64
ExampleFunction · 0.64
Example_structFunction · 0.64
Example_multipleFunction · 0.64
ExampleWithFunction · 0.64
ExampleLogger_NamedFunction · 0.64
ExampleLogger_LeveledFunction · 0.64
TestExitFunction · 0.64
Example_marshallerFunction · 0.64
TestMakeFunction · 0.64
TestVisualFunction · 0.64