Documentation ¶
Overview ¶
Package log 是 SDK 的 logger 接口定义与内置的 logger。
Index ¶
- Variables
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Sync()
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger = Logger(new(consoleLogger))
DefaultLogger 默认logger
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debug(v ...interface{}) Info(v ...interface{}) Warn(v ...interface{}) Error(v ...interface{}) Debugf(format string, v ...interface{}) Infof(format string, v ...interface{}) Warnf(format string, v ...interface{}) Errorf(format string, v ...interface{}) // Sync logger Sync calls to flush buffer Sync() error }
Logger 日志需要实现的接口定义
Click to show internal directories.
Click to hide internal directories.