Documentation ¶
Overview ¶
Package logger manages loggers used in dragonboat.
Index ¶
Constants ¶
View Source
const (
// RepoName is the repo name used in capnslog.
RepoName = "github.com/lni/dragonboat"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
Factory is the factory method for creating logger used for the specified package.
type ILogger ¶
type ILogger interface { SetLevel(LogLevel) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Panicf(format string, args ...interface{}) }
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.
Click to show internal directories.
Click to hide internal directories.