Documentation
¶
Index ¶
- func Debug(v ...interface{})
- func DebugLogger() *log.Logger
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Error(v ...interface{})
- func ErrorLogger() *log.Logger
- func Errorf(format string, v ...interface{})
- func Errorln(v ...interface{})
- func Info(v ...interface{})
- func InfoLogger() *log.Logger
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func SetDebugPrefix(prefix string)
- func SetErrorLogStackLevel(lv int)
- func SetErrorPrefix(prefix string)
- func SetInfoPrefix(prefix string)
- func SetLoggerLevel(lv LoggerLeve)
- func SetOutput(w io.Writer)
- type LoggerLeve
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Panicf ¶
func Panicf(format string, v ...interface{})
Panicf is equivalent to Printf() followed by a call to panic().
func Panicln ¶
func Panicln(v ...interface{})
Panicln is equivalent to Println() followed by a call to panic().
func SetErrorLogStackLevel ¶ added in v0.0.8
func SetErrorLogStackLevel(lv int)
SetErrorLogStackLevel 设置错误日志打印调用栈长度
Types ¶
type LoggerLeve ¶
type LoggerLeve int
LoggerLeve 日志级别 debug info error
const ( // NONE NONE NONE LoggerLeve = 1 << iota // ERROR ERROR ERROR // INFO INFO INFO // DEBUG DEBUG DEBUG )
Click to show internal directories.
Click to hide internal directories.