Documentation
¶
Index ¶
- Constants
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func SetLogger(logger *Logger)
- func Tracef(format string, v ...interface{})
- type Logger
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) SetCallDepth(calldepth int)
- func (l *Logger) Tracef(format string, v ...interface{})
Constants ¶
const ( TimeFlag = log.LstdFlags | log.Lmicroseconds FileFlag = log.Lshortfile TimeFileFlag = TimeFlag | FileFlag )
Defines the log format
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger A Logger represents an active logging object that generates lines of output to an io.Writer.
func NewFileLogger ¶
NewFileLogger creates a logger with output directed to a file
func NewStdLogger ¶
NewStdLogger creates a logger with output directed to Stderr
func (*Logger) SetCallDepth ¶
SetCallDepth set call depth