SetOutput sets the output writer.
(w io.Writer)
| 39 | |
| 40 | // SetOutput sets the output writer. |
| 41 | func (e *EchoLogger) SetOutput(w io.Writer) { |
| 42 | e.mutex.Lock() |
| 43 | defer e.mutex.Unlock() |
| 44 | |
| 45 | e.logger.Output(w) |
| 46 | } |
| 47 | |
| 48 | // Prefix returns the log prefix. |
| 49 | func (e *EchoLogger) Prefix() string { |