Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/slog
/ LogEntry
Method
LogEntry
slog.go:30–30 ·
view source on GitHub ↗
(ctx context.Context, e SinkEntry)
Source
from the content-addressed store, hash-verified
28
// All sinks must be safe for concurrent use.
29
type
Sink
interface
{
30
LogEntry(ctx context.Context, e SinkEntry)
31
Sync()
32
}
33
Callers
2
Log
Method · 0.65
BenchmarkHumanSinkLogEntry
Function · 0.65
Implementers
5
fakeSink
slog_test.go
jsonSink
sloggers/slogjson/slogjson.go
stackdriverSink
sloggers/slogstackdriver/slogstackdriv
humanSink
sloggers/sloghuman/sloghuman.go
testSink
sloggers/slogtest/t.go
Calls
no outgoing calls
Tested by
1
BenchmarkHumanSinkLogEntry
Function · 0.52