MCPcopy Create free account
hub / github.com/coder/slog / Logger

Struct Logger

slog.go:61–70  ·  view source on GitHub ↗

Logger wraps Sink with a nice API to log entries. Logger is safe for concurrent use.

Source from the content-addressed store, hash-verified

59//
60// Logger is safe for concurrent use.
61type Logger struct {
62 sinks []Sink
63 level Level
64
65 names []string
66 fields Map
67
68 skip int
69 exit func(int)
70}
71
72// Make creates a logger that writes logs to the passed sinks at LevelInfo.
73func Make(sinks ...Sink) Logger {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected