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, level int, env string, timezone, timeFormat string, ...) *logger
- func Notice(message string, v ...interface{})
- func Panic(message string, v ...interface{})
- func SetLevel(level int)
- 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), DEBUG, "local", "asia/shanghai", datetime.LayoutDateTimeZoneT, nil)
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.