ILogger is the interface implemented by loggers that can be used by dragonboat. You can implement your own ILogger implementation by building wrapper struct on top of your favourite logging library.
| 47 | // dragonboat. You can implement your own ILogger implementation by building |
| 48 | // wrapper struct on top of your favourite logging library. |
| 49 | type ILogger interface { |
| 50 | SetLevel(LogLevel) |
| 51 | Debugf(format string, args ...interface{}) |
| 52 | Infof(format string, args ...interface{}) |
| 53 | Warningf(format string, args ...interface{}) |
| 54 | Errorf(format string, args ...interface{}) |
| 55 | Panicf(format string, args ...interface{}) |
| 56 | } |
| 57 | |
| 58 | // SetLoggerFactory sets the factory function used to create ILogger instances. |
| 59 | func SetLoggerFactory(f Factory) { |
no outgoing calls
no test coverage detected