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

Method AppendSinks

slog.go:153–156  ·  view source on GitHub ↗

AppendSinks appends the sinks to the set sink targets on the logger.

(s ...Sink)

Source from the content-addressed store, hash-verified

151// AppendSinks appends the sinks to the set sink
152// targets on the logger.
153func (l Logger) AppendSinks(s ...Sink) Logger {
154 l.sinks = append(l.sinks, s...)
155 return l
156}
157
158func (l Logger) log(ctx context.Context, level Level, msg string, fields []Field) {
159 ent := l.entry(ctx, level, msg, fields)

Callers 2

TestLoggerFunction · 0.80
Example_multipleFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestLoggerFunction · 0.64
Example_multipleFunction · 0.64