Documentation
¶
Overview ¶
logger.go
Index ¶
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Fatal(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func SetColor(enable bool)
- func SetIncludeTrace(include bool)
- func SetLevel(level LogLevel)
- func SetOutput(w io.Writer)
- func SetTimeFormat(format string)
- func Warn(format string, v ...interface{})
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, v ...interface{})
- func (l *Logger) Error(format string, v ...interface{})
- func (l *Logger) Fatal(format string, v ...interface{})
- func (l *Logger) Info(format string, v ...interface{})
- func (l *Logger) SetColor(enable bool)
- func (l *Logger) SetIncludeTrace(include bool)
- func (l *Logger) SetLevel(level LogLevel)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetTimeFormat(format string)
- func (l *Logger) Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIncludeTrace ¶
func SetIncludeTrace(include bool)
func SetTimeFormat ¶
func SetTimeFormat(format string)
Types ¶
Click to show internal directories.
Click to hide internal directories.