Documentation
¶
Index ¶
- Constants
- func Binary(level Level, bin []byte, v ...interface{})
- func Binaryf(level Level, bin []byte, format string, v ...interface{})
- func Check(cond bool, v ...interface{})
- func CheckLevel(level Level) bool
- 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 Level, extra func(io.Writer) error, v ...interface{}) error
- func Outputf(calldepth int, level Level, extra func(io.Writer) error, format string, ...) error
- func Stack(level Level, calldepth int, v ...interface{})
- func Stackf(level Level, calldepth int, format string, v ...interface{})
- func Text(level Level, txt string, v ...interface{})
- func Textf(level Level, txt string, 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 Level) *log.Logger
- type Level
- type Logger
- 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) Level() Level
- func (l *Logger) Notice(v ...interface{})
- func (l *Logger) Noticef(format string, v ...interface{})
- func (l *Logger) Output(calldepth int, level Level, extra func(io.Writer) error, v ...interface{}) error
- func (l *Logger) Outputf(calldepth int, level Level, extra func(io.Writer) error, format string, ...) error
- func (l *Logger) SetFilePrefix(prefix string)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetOutput(t OutputType, v ...interface{})
- 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{})
- type OutputType
Constants ¶
View Source
const TimeLayout = "2006-01-02T15:04:05-07:00"
TimeLayout is a fixed-length layout conforming to both ISO 8601 and RFC 3339
Variables ¶
This section is empty.
Functions ¶
func CheckLevel ¶
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) SetFilePrefix ¶
func (*Logger) SetOutput ¶
func (l *Logger) SetOutput(t OutputType, v ...interface{})
func (*Logger) VeryVerbose ¶
func (l *Logger) VeryVerbose(v ...interface{})
func (*Logger) VeryVerbosef ¶
type OutputType ¶
type OutputType int
const ( OutputDiscard OutputType = iota OutputWriter OutputSyslog )
Click to show internal directories.
Click to hide internal directories.