NewDefaultLogger creates a new DefaultLogger instance. If no output is set via SetOutput, it defaults to os.Stdout.
()
| 32 | // NewDefaultLogger creates a new DefaultLogger instance. |
| 33 | // If no output is set via SetOutput, it defaults to os.Stdout. |
| 34 | func NewDefaultLogger() *DefaultLogger { |
| 35 | return &DefaultLogger{ |
| 36 | output: os.Stdout, |
| 37 | eventTypes: make(map[EventType]bool), |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // SetOutput sets the output destination for the logger. |
| 42 | // It can be set to a buffer or any io.Writer. |
no outgoing calls
searching dependent graphs…