SetOutput sets the output destination for the logger. It can be set to a buffer or any io.Writer.
(w io.Writer)
| 41 | // SetOutput sets the output destination for the logger. |
| 42 | // It can be set to a buffer or any io.Writer. |
| 43 | func (l *DefaultLogger) SetOutput(w io.Writer) { |
| 44 | if w != nil { |
| 45 | l.output = w |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // SetEventTypes sets the event types that should be logged. |
| 50 | // Only events matching these types will have IsActive set to true. |
no outgoing calls