After sets this CheckEntry's CheckWriteHook, which will be called after this log entry has been written. It's safe to call this on nil CheckedEntry references.
(ent Entry, hook CheckWriteHook)
| 329 | // log entry has been written. It's safe to call this on nil CheckedEntry |
| 330 | // references. |
| 331 | func (ce *CheckedEntry) After(ent Entry, hook CheckWriteHook) *CheckedEntry { |
| 332 | if ce == nil { |
| 333 | ce = getCheckedEntry() |
| 334 | ce.Entry = ent |
| 335 | } |
| 336 | ce.after = hook |
| 337 | return ce |
| 338 | } |