Skip to content
callcount

package

log/slog

standard library

30 standard-library functions from log/slog, ranked by how often they are called outside tests and generated code.

Docs on pkg.go.dev ↗

prod calls
25,957
non-test, non-generated
all calls
76,034
total callsites
functions
30
ranked in this snapshot
origin
std
standard-library

members

Functions in log/slog

Ranked by production calls. The bar scales each function against the busiest in this package.

Function Prod calls
Logger.Debug 3,726
String 3,082
Logger.Info 2,373
Logger.Error 2,319
Any 2,142
Debug 1,916
Logger.Warn 1,770
Warn 1,535
Error 1,317
Info 1,041
Logger.With 707
Int64 625
Int 499
New 458
Logger.DebugContext 412
Default 408
Logger.ErrorContext 237
Logger.Enabled 189
Bool 163
Logger.InfoContext 150
Logger.LogAttrs 118
Logger.WarnContext 117
NewTextHandler 109
Logger.Handler 96
Float64 94
StringValue 79
Duration 75
Group 69
GroupValue 66
Value.Any 65