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

Interface Sink

slog.go:29–32  ·  view source on GitHub ↗

Sink is the destination of a Logger. All sinks must be safe for concurrent use.

Source from the content-addressed store, hash-verified

27//
28// All sinks must be safe for concurrent use.
29type Sink interface {
30 LogEntry(ctx context.Context, e SinkEntry)
31 Sync()
32}
33
34// Log logs the given entry with the context to the
35// underlying sinks.

Callers 7

LogMethod · 0.65
SyncMethod · 0.65
SyncMethod · 0.65
SyncMethod · 0.65
TestMakeFunction · 0.65
TestVisualFunction · 0.65

Implementers 5

fakeSinkslog_test.go
jsonSinksloggers/slogjson/slogjson.go
stackdriverSinksloggers/slogstackdriver/slogstackdriv
humanSinksloggers/sloghuman/sloghuman.go
testSinksloggers/slogtest/t.go

Calls

no outgoing calls

Tested by

no test coverage detected