Documentation
¶
Index ¶
- 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 SetLogger(logger Interface)
- func Warning(v ...interface{})
- func Warningf(format string, v ...interface{})
- type Closer
- type Interface
- type Sweeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Closer ¶
type Closer interface {
//Close the opened io stream
Close() error
}
Closer defines method to close the open io stream used by logger.
type Interface ¶
type Interface interface {
//For debuging
Debug(v ...interface{})
//For debuging with format
Debugf(format string, v ...interface{})
//For logging info
Info(v ...interface{})
//For logging info with format
Infof(format string, v ...interface{})
//For warning
Warning(v ...interface{})
//For warning with format
Warningf(format string, v ...interface{})
//For logging error
Error(v ...interface{})
//For logging error with format
Errorf(format string, v ...interface{})
//For fatal error
Fatal(v ...interface{})
//For fatal error with error
Fatalf(format string, v ...interface{})
}
Interface for logger.
type Sweeper ¶
type Sweeper struct {
// contains filtered or unexported fields
}
Sweeper takes charge of archive the outdated log files of jobs.
func NewSweeper ¶
NewSweeper creates new prt of Sweeper
Click to show internal directories.
Click to hide internal directories.