SetOutput sets a new output handler for the log output. This is for temporarily overriding the output.
(fn outputFn)
| 195 | // |
| 196 | // This is for temporarily overriding the output. |
| 197 | func (h *OutputHandler) SetOutput(fn outputFn) { |
| 198 | h.mu.Lock() |
| 199 | defer h.mu.Unlock() |
| 200 | h.output = append(h.output, fn) |
| 201 | } |
| 202 | |
| 203 | // ResetOutput resets the log output to what is was. |
| 204 | func (h *OutputHandler) ResetOutput() { |