DefaultLogger is the default implementation of the Logger interface.
| 24 | |
| 25 | // DefaultLogger is the default implementation of the Logger interface. |
| 26 | type DefaultLogger struct { |
| 27 | output io.Writer |
| 28 | eventTypes map[EventType]bool |
| 29 | logCallback func(entry *LogEntry) error |
| 30 | } |
| 31 | |
| 32 | // NewDefaultLogger creates a new DefaultLogger instance. |
| 33 | // If no output is set via SetOutput, it defaults to os.Stdout. |
nothing calls this directly
no outgoing calls
no test coverage detected