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

Method log

slog.go:158–161  ·  view source on GitHub ↗
(ctx context.Context, level Level, msg string, fields []Field)

Source from the content-addressed store, hash-verified

156}
157
158func (l Logger) log(ctx context.Context, level Level, msg string, fields []Field) {
159 ent := l.entry(ctx, level, msg, fields)
160 l.Log(ctx, ent)
161}
162
163func (l Logger) entry(ctx context.Context, level Level, msg string, fields Map) SinkEntry {
164 ent := SinkEntry{

Callers 7

DebugMethod · 0.95
InfoMethod · 0.95
WarnMethod · 0.95
ErrorMethod · 0.95
CriticalMethod · 0.95
FatalMethod · 0.95
WriteMethod · 0.80

Calls 2

entryMethod · 0.95
LogMethod · 0.95

Tested by

no test coverage detected