Skip to content
callcount

package

log/slog

standard library

29 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
26,666
non-test, non-generated
all calls
77,802
total callsites
functions
29
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,773
String 3,238
Logger.Info 2,359
Logger.Error 2,321
Any 2,219
Debug 1,989
Logger.Warn 1,833
Warn 1,746
Error 1,368
Info 1,079
Logger.With 686
Int64 645
Int 517
New 471
Logger.DebugContext 435
Default 418
Logger.ErrorContext 202
Logger.Enabled 188
Bool 164
Logger.InfoContext 155
Logger.WarnContext 142
Logger.LogAttrs 120
NewTextHandler 111
Float64 105
Logger.Handler 92
StringValue 79
Duration 76
Group 69
Value.Any 66