Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Critical(v ...interface{})
- func (l *Logger) Criticalf(format string, v ...interface{})
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Notice(v ...interface{})
- func (l *Logger) Noticef(format string, v ...interface{})
- func (l *Logger) Panic(v ...interface{})
- func (l *Logger) Panicf(format string, v ...interface{})
- func (l *Logger) Warning(v ...interface{})
- func (l *Logger) Warningf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
func (*Logger) Critical ¶
func (l *Logger) Critical(v ...interface{})
Critical prints the logging content with [CRIT] header and newline. It also prints caller stack info if stack feature is enabled.
func (*Logger) Criticalf ¶
Criticalf prints the logging content with [CRIT] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func (*Logger) Debug ¶
func (l *Logger) Debug(v ...interface{})
Debug prints the logging content with [DEBU] header and newline.
func (*Logger) Debugf ¶
Debugf prints the logging content with [DEBU] header, custom format and newline.
func (*Logger) Error ¶
func (l *Logger) Error(v ...interface{})
Error prints the logging content with [ERRO] header and newline. It also prints caller stack info if stack feature is enabled.
func (*Logger) Errorf ¶
Errorf prints the logging content with [ERRO] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func (*Logger) Fatal ¶
func (l *Logger) Fatal(v ...interface{})
Fatal prints the logging content with [FATA] header and newline, then exit the current process.
func (*Logger) Fatalf ¶
Fatalf prints the logging content with [FATA] header, custom format and newline, then exit the current process.
func (*Logger) Info ¶
func (l *Logger) Info(v ...interface{})
Info prints the logging content with [INFO] header and newline.
func (*Logger) Infof ¶
Infof prints the logging content with [INFO] header, custom format and newline.
func (*Logger) Notice ¶
func (l *Logger) Notice(v ...interface{})
Notice prints the logging content with [NOTI] header and newline. It also prints caller stack info if stack feature is enabled.
func (*Logger) Noticef ¶
Noticef prints the logging content with [NOTI] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func (*Logger) Panic ¶
func (l *Logger) Panic(v ...interface{})
Panic prints the logging content with [PANI] header and newline, then panics.
func (*Logger) Panicf ¶
Panicf prints the logging content with [PANI] header, custom format and newline, then panics.