MCPcopy
hub / github.com/op/go-logging / Log

Method Log

format.go:409–414  ·  view source on GitHub ↗

Log implements the Log function required by the Backend interface.

(level Level, calldepth int, r *Record)

Source from the content-addressed store, hash-verified

407
408// Log implements the Log function required by the Backend interface.
409func (bf *backendFormatter) Log(level Level, calldepth int, r *Record) error {
410 // Make a shallow copy of the record and replace any formatter
411 r2 := *r
412 r2.formatter = bf.f
413 return bf.b.Log(level, calldepth+1, &r2)
414}

Callers

nothing calls this directly

Calls 1

LogMethod · 0.65

Tested by

no test coverage detected