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

Function httpLogHelper

example_helper_test.go:12–18  ·  view source on GitHub ↗
(ctx context.Context, status int)

Source from the content-addressed store, hash-verified

10)
11
12func httpLogHelper(ctx context.Context, status int) {
13 slog.Helper()
14
15 l.Info(ctx, "sending HTTP response",
16 slog.F("status", status),
17 )
18}
19
20var l = slog.Make(sloghuman.Sink(os.Stdout))
21

Callers 1

ExampleHelperFunction · 0.85

Calls 2

InfoMethod · 0.80
HelperMethod · 0.45

Tested by

no test coverage detected