NewBackendFormatter creates a new backend which makes all records that passes through it beeing formatted by the specific formatter.
(b Backend, f Formatter)
| 402 | // NewBackendFormatter creates a new backend which makes all records that |
| 403 | // passes through it beeing formatted by the specific formatter. |
| 404 | func NewBackendFormatter(b Backend, f Formatter) Backend { |
| 405 | return &backendFormatter{b, f} |
| 406 | } |
| 407 | |
| 408 | // Log implements the Log function required by the Backend interface. |
| 409 | func (bf *backendFormatter) Log(level Level, calldepth int, r *Record) error { |
no outgoing calls