MCPcopy
hub / github.com/charmbracelet/log / With

Function With

pkg.go:157–159  ·  view source on GitHub ↗

With returns a new logger with the given keyvals.

(keyvals ...any)

Source from the content-addressed store, hash-verified

155
156// With returns a new logger with the given keyvals.
157func With(keyvals ...any) *Logger {
158 return Default().With(keyvals...)
159}
160
161// WithPrefix returns a new logger with the given prefix.
162func WithPrefix(prefix string) *Logger {

Callers 1

TestWithFunction · 0.85

Calls 2

DefaultFunction · 0.85
WithMethod · 0.80

Tested by 1

TestWithFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…