Documentation ¶
Index ¶
- Constants
- Variables
- func Color(code, msg string) string
- func Debug(a ...interface{})
- func Debugf(format string, a ...interface{})
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func SetPrintLevel(level uint8)
- func Warn(a ...interface{})
- func Warnf(format string, a ...interface{})
- type Logger
- func (l *Logger) Debug(a ...interface{})
- func (l *Logger) Debugf(format string, a ...interface{})
- func (l *Logger) Error(a ...interface{})
- func (l *Logger) Errorf(format string, a ...interface{})
- func (l *Logger) Fatal(a ...interface{})
- func (l *Logger) Fatalf(format string, a ...interface{})
- func (l *Logger) Info(a ...interface{})
- func (l *Logger) Infof(format string, a ...interface{})
- func (l *Logger) Level() elalog.Level
- func (l *Logger) Output(level uint8, a ...interface{})
- func (l *Logger) Outputf(level uint8, format string, v ...interface{})
- func (l *Logger) SetLevel(level elalog.Level)
- func (l *Logger) Warn(a ...interface{})
- func (l *Logger) Warnf(format string, a ...interface{})
- func (l *Logger) Writer() io.Writer
Constants ¶
View Source
const ( Red = "1;31" Green = "1;32" Yellow = "1;33" Pink = "1;35" Cyan = "1;36" )
Variables ¶
View Source
var (
Stdout = os.Stdout
)
Functions ¶
func SetPrintLevel ¶ added in v0.2.2
func SetPrintLevel(level uint8)
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewDefault ¶ added in v0.3.0
func NewFileLogger ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.