Documentation
¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func NewEchoLogger(cfg *Config) *log.Logger
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Config
- type Logger
Constants ¶
View Source
const ( // WriterConsole console输出 WriterConsole = "console" // WriterFile 文件输出 WriterFile = "file" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) }
Logger is a contract for the logger
var Log Logger
Click to show internal directories.
Click to hide internal directories.