Documentation ¶
Index ¶
- Constants
- func Check(cond bool, v ...interface{})
- func Checkf(cond bool, format string, v ...interface{})
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Notice(v ...interface{})
- func Noticef(format string, v ...interface{})
- func Output(calldepth int, level int, msg []byte)
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Verbose(v ...interface{})
- func Verbosef(format string, v ...interface{})
- func VeryVerbose(v ...interface{})
- func VeryVerbosef(format string, v ...interface{})
- func Warning(v ...interface{})
- func Warningf(format string, v ...interface{})
- func Wrap(logger *Logger, level int) *log.Logger
- type Logger
- func (l *Logger) Check(cond bool, v ...interface{})
- func (l *Logger) CheckLevel(level int) bool
- func (l *Logger) Checkf(cond bool, 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) Output(calldepth int, level int, msg []byte)
- func (l *Logger) Panic(v ...interface{})
- func (l *Logger) Panicf(format string, v ...interface{})
- func (l *Logger) SetLevel(level int)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetOutputConfig(output, tag string) error
- func (l *Logger) Verbose(v ...interface{})
- func (l *Logger) Verbosef(format string, v ...interface{})
- func (l *Logger) VeryVerbose(v ...interface{})
- func (l *Logger) VeryVerbosef(format string, v ...interface{})
- func (l *Logger) Warning(v ...interface{})
- func (l *Logger) Warningf(format string, v ...interface{})
Constants ¶
View Source
const ( LevelSilence = iota LevelFatal LevelError LevelWarning LevelNotice LevelInfo LevelDebug LevelVerbose LevelVeryVerbose )
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(v ...interface{})
Serious problems that are likely to cause the program to exit.
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Serious problems that are likely to cause the program to exit.
func Noticef ¶
func Noticef(format string, v ...interface{})
Important status changes. The prefix is 'I'.
func Verbosef ¶
func Verbosef(format string, v ...interface{})
Details for inspecting specific issues.
func VeryVerbose ¶
func VeryVerbose(v ...interface{})
More details that may significantly impact performance. The prefix is 'V'.
func VeryVerbosef ¶
func VeryVerbosef(format string, v ...interface{})
More details that may significantly impact performance. The prefix is 'V'.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) CheckLevel ¶
func (*Logger) SetOutputConfig ¶
func (*Logger) VeryVerbose ¶
func (l *Logger) VeryVerbose(v ...interface{})
func (*Logger) VeryVerbosef ¶
Click to show internal directories.
Click to hide internal directories.