MCPcopy
hub / github.com/uber-go/zap / OnWrite

Method OnWrite

zapcore/entry.go:170–170  ·  view source on GitHub ↗

OnWrite is invoked with the CheckedEntry that was written and a list of fields added with that entry. The list of fields DOES NOT include fields that were already added to the logger with the With method.

(*CheckedEntry, []Field)

Source from the content-addressed store, hash-verified

168 // The list of fields DOES NOT include fields that were already added
169 // to the logger with the With method.
170 OnWrite(*CheckedEntry, []Field)
171}
172
173// CheckWriteAction indicates what action to take after a log entry is

Callers 1

WriteMethod · 0.65

Implementers 2

customWriteHooklogger_test.go
customHookzapcore/entry_test.go

Calls

no outgoing calls

Tested by

no test coverage detected