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