Documentation ¶
Index ¶
Constants ¶
View Source
const ( ZAP string = "zap" LOGRUS string = "logrus" )
Log Driver Type
Variables ¶
This section is empty.
Functions ¶
func RegisterLogBuilder ¶
func RegisterLogBuilder(builderType string, builder LogBuilder)
RegisterLogBuilder register all kinds of log builder
Types ¶
type LogBuilder ¶
LogBuilder for build logger interface
type Logger ¶
type Logger interface { Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debug(args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Debugf(format string, args ...interface{}) }
Logger for common interface
Click to show internal directories.
Click to hide internal directories.