(ent Entry, ce *CheckedEntry)
| 50 | } |
| 51 | |
| 52 | func (h *hooked) Check(ent Entry, ce *CheckedEntry) *CheckedEntry { |
| 53 | // Let the wrapped Core decide whether to log this message or not. This |
| 54 | // also gives the downstream a chance to register itself directly with the |
| 55 | // CheckedEntry. |
| 56 | if downstream := h.Core.Check(ent, ce); downstream != nil { |
| 57 | return downstream.AddCore(ent, h) |
| 58 | } |
| 59 | return ce |
| 60 | } |
| 61 | |
| 62 | func (h *hooked) With(fields []Field) Core { |
| 63 | return &hooked{ |