Documentation ¶
Index ¶
- Variables
- func EndLine() string
- func Now(layout string) string
- type LogRecord
- type ZZZLogger
- func (l *ZZZLogger) Critical(message string)
- func (l *ZZZLogger) Criticalf(message string, vars ...interface{})
- func (l *ZZZLogger) Debug(message string, file string, line int)
- func (l *ZZZLogger) Debugf(message string, file string, line int, vars ...interface{})
- func (l *ZZZLogger) Error(message string)
- func (l *ZZZLogger) Errorf(message string, vars ...interface{})
- func (l *ZZZLogger) Fatal(message string)
- func (l *ZZZLogger) Fatalf(message string, vars ...interface{})
- func (l *ZZZLogger) Hint(message string)
- func (l *ZZZLogger) Hintf(message string, vars ...interface{})
- func (l *ZZZLogger) Info(message string)
- func (l *ZZZLogger) Infof(message string, vars ...interface{})
- func (l *ZZZLogger) SetOutput(w io.Writer)
- func (l *ZZZLogger) Success(message string)
- func (l *ZZZLogger) Successf(message string, vars ...interface{})
- func (l *ZZZLogger) Warn(message string)
- func (l *ZZZLogger) Warnf(message string, vars ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = GetLogger(os.Stdout)
Functions ¶
Types ¶
type LogRecord ¶
LogRecord represents a log record and contains the timestamp when the record was created, an increasing id, level and the actual formatted log line.
type ZZZLogger ¶
type ZZZLogger struct {
// contains filtered or unexported fields
}
ZZZLogger logs logging records to the specified io.Writer
func GetLogger ¶
GetLogger initializes the logger instance with a NewColorWriter output and returns a singleton
Click to show internal directories.
Click to hide internal directories.