Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(message string, v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(message string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(message string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(message string, v ...interface{})
- func Infof(format string, v ...interface{})
- func New(raw *log.Logger, env string, level int, timezone, timeFormat string, ...) *logger
- func Notice(message string, v ...interface{})
- func Noticef(format string, v ...interface{})
- func Panic(message string, v ...interface{})
- func Panicf(format string, v ...interface{})
- func SetLevel(level int)
- func SetRequest(request *http.Request)
- func SetTrace(trace string)
- func Warn(message string, v ...interface{})
- func Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( DEBUG int = iota INFO NOTICE WARN ERROR PANIC FATAL )
Variables ¶
View Source
var (
Logger = New(log.New(os.Stderr, "", log.Lmsgprefix), "local", DEBUG, "asia/shanghai", datetime.LayoutDateTimeZoneT, nil)
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.