Documentation ¶
Index ¶
- Constants
- func LogTime(timeNow int64) string
- func LogTimeNow() string
- type Alog
- func (l *Alog) Error(message string)
- func (l *Alog) Errorf(format string, params ...interface{})
- func (l *Alog) Fatal(message string)
- func (l *Alog) Fatalf(format string, params ...interface{})
- func (l *Alog) Info(message string)
- func (l *Alog) Infof(format string, params ...interface{})
- func (l *Alog) Warn(message string)
- func (l *Alog) Warnf(format string, params ...interface{})
Constants ¶
View Source
const ( ColorReset = "\033[0m" ColorError = "\033[31m" ColorWarning = "\033[33m" ColorNotice = "\033[34m" ColorDebug = "\033[35m" ColorSuccess = "\033[32m" )
View Source
const LogErrorPattern = "\u001B[0m%s [\u001B[31mERROR\u001B[0m] [\u001B[32m%s\u001B[0m] %s"
View Source
const LogFatalPattern = "\u001B[0m%s [\u001B[31mFATAL\u001B[0m] [\u001B[32m%s\u001B[0m] %s"
View Source
const LogInfoPattern = "\u001B[0m%s [\u001B[34mINFO\u001B[0m] [\u001B[32m%s\u001B[0m] %s"
View Source
const LogWarningPattern = "\u001B[0m%s [\u001B[33mWARNING\u001B[0m] [\u001B[32m%s\u001B[0m] %s"
Variables ¶
This section is empty.
Functions ¶
func LogTimeNow ¶
func LogTimeNow() string
LogTimeNow выводит текущего время в заданном формате для логов
Types ¶
Click to show internal directories.
Click to hide internal directories.