MCPcopy
hub / github.com/lni/dragonboat / ILogger

Interface ILogger

logger/logger.go:49–56  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

47// dragonboat. You can implement your own ILogger implementation by building
48// wrapper struct on top of your favourite logging library.
49type 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.
59func SetLoggerFactory(f Factory) {

Callers 48

BenchmarkFSyncLatencyFunction · 0.65
benchmarkSaveRaftStateFunction · 0.65
benchmarkTransportFunction · 0.65
mainFunction · 0.65
SetLevelMethod · 0.65
SetLevelMethod · 0.65
workerPoolMainMethod · 0.65
completedMethod · 0.65
scheduleWorkerMethod · 0.65
RestoreRemotesMethod · 0.65

Implementers 3

capnsLoglogger/capnslogger.go
dragonboatLoggerlogger/logger.go
nullLoggerlogger/logger.go

Calls

no outgoing calls

Tested by

no test coverage detected