Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(message string, v ...interface{})
- func Error(message string, v ...interface{})
- func Fatal(message string, v ...interface{})
- func Info(message string, v ...interface{})
- func New(raw *log.Logger, env string, level int, timezone, timeFormat string, ...) *logger
- func Notice(message string, v ...interface{})
- func Panic(message string, v ...interface{})
- func SetLevel(level int)
- func SetRequest(request *http.Request)
- func SetTrace(trace string)
- func Warn(message string, v ...interface{})
Constants ¶
View Source
const ( DEBUG int = iota INFO NOTICE WARN ERROR FATAL PANIC )
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.