Log logs the given entry with the context to the underlying sinks. It extends the entry with the set fields and names.
(ctx context.Context, e SinkEntry)
| 36 | // |
| 37 | // It extends the entry with the set fields and names. |
| 38 | func (l Logger) Log(ctx context.Context, e SinkEntry) { |
| 39 | if e.Level < l.level { |
| 40 | return |
| 41 | } |
| 42 | |
| 43 | e.Fields = l.fields.append(e.Fields) |
| 44 | e.LoggerNames = appendNames(l.names, e.LoggerNames...) |
| 45 | |
| 46 | for _, s := range l.sinks { |
| 47 | s.LogEntry(ctx, e) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // Sync calls Sync on all the underlying sinks. |
| 52 | func (l Logger) Sync() { |
no test coverage detected