Package logger manages loggers used in dragonboat.
// RepoName is the repo name used in capnslog.
RepoName = "54hub.com/arkdep/dragonboat-v3"
This section is empty.
Factory is the factory method for creating logger used for the specified package.
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.
func CreateCapnsLog ¶
CreateCapnsLog creates an ILogger instance based on capnslog.
GetLogger returns the logger for the specified package name. The most common use case for the returned logger is to set its log verbosity level.
type LogLevel int
LogLevel is the log level defined in dragonboat.