Documentation ¶
Index ¶
- Constants
- 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 Flush() error
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Init(o Options)
- func Log(file string, line int, l level, v ...interface{})
- func Logf(file string, line int, l level, format string, v ...interface{})
- func Trace(v ...interface{})
- func Tracef(format string, v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func WithLevel(file string, line int, l level, v ...interface{})
- func WithLevelf(file string, line int, l level, format string, v ...interface{})
- func Writer() io.Writer
- type Logger
- func (logger *Logger) Debug(v ...interface{})
- func (logger *Logger) Debugf(format string, v ...interface{})
- func (logger *Logger) Discard()
- func (logger *Logger) Error(v ...interface{})
- func (logger *Logger) Errorf(format string, v ...interface{})
- func (logger *Logger) Fatal(v ...interface{})
- func (logger *Logger) Fatalf(format string, v ...interface{})
- func (logger *Logger) Flush() error
- func (logger *Logger) Info(v ...interface{})
- func (logger *Logger) Infof(format string, v ...interface{})
- func (logger *Logger) Log(file string, line int, l level, v ...interface{})
- func (logger *Logger) Logf(file string, line int, l level, format string, v ...interface{})
- func (logger *Logger) ResumeWriter()
- func (logger *Logger) Trace(v ...interface{})
- func (logger *Logger) Tracef(format string, v ...interface{})
- func (logger *Logger) Warn(v ...interface{})
- func (logger *Logger) Warnf(format string, v ...interface{})
- func (logger *Logger) WithLevel(file string, line int, l level, v ...interface{})
- func (logger *Logger) WithLevelf(file string, line int, l level, format string, v ...interface{})
- func (logger *Logger) Writer() io.Writer
- type Option
- type Options
Constants ¶
View Source
const ( LevelFatal level = iota LevelError LevelWarn LevelInfo LevelDebug LevelTrace )
log level
Variables ¶
This section is empty.
Functions ¶
func WithLevelf ¶
WithLevelf logs with the level specified
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger the logger struct
func (*Logger) Debug ¶
func (logger *Logger) Debug(v ...interface{})
Debug provides debug level logging
func (*Logger) Error ¶
func (logger *Logger) Error(v ...interface{})
Error provides error level logging
func (*Logger) Fatal ¶
func (logger *Logger) Fatal(v ...interface{})
Fatal provides fatal level logging
func (*Logger) ResumeWriter ¶
func (logger *Logger) ResumeWriter()
func (*Logger) Trace ¶
func (logger *Logger) Trace(v ...interface{})
Trace provides trace level logging
func (*Logger) WithLevelf ¶
WithLevelf logs with the level specified
Click to show internal directories.
Click to hide internal directories.