AddAttrs appends the given Attrs to the [Record]'s list of Attrs. It omits empty groups.
Rest
...attrs: Attr[]Attrs calls f on each Attr in the [Record]. Iteration stops if f returns false.
The level of the event.
The log message.
The program counter at the time the record was constructed, as determined by runtime.Callers. If zero, no program counter is available.
The only valid use for this value is as an argument to [runtime.CallersFrames]. In particular, it must not be passed to [runtime.FuncForPC].
The time at which the output method (Log, Info, etc.) was called.
Generated using TypeDoc
A Record holds information about a log event. Copies of a Record share state. Do not modify a Record after handing out a copy to it. Call [NewRecord] to create a new Record. Use [Record.Clone] to create a copy with no shared state.