Documentation ¶
Index ¶
- Variables
- func CopyStandardLogTo(name string)
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Flush()
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func LogInit(logger Logger)
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- type Level
- type Log
- func (l Log) Errorf(format string, args ...interface{})
- func (l Log) Errorln(args ...interface{})
- func (l Log) Fatalf(format string, args ...interface{})
- func (l Log) Fatalln(args ...interface{})
- func (l Log) Flush()
- func (l Log) Infof(format string, args ...interface{})
- func (l Log) Infoln(args ...interface{})
- func (l Log) Warningf(format string, args ...interface{})
- func (l Log) Warningln(args ...interface{})
- type Logger
- type OutputStats
- type Verbose
Constants ¶
This section is empty.
Variables ¶
View Source
var FlushInterval = 5 * time.Second
View Source
var MaxSize uint64 = 1024 * 1024 * 1800
View Source
var Stats struct { Info, Warning, Error OutputStats }
Functions ¶
func CopyStandardLogTo ¶
func CopyStandardLogTo(name string)
Types ¶
type OutputStats ¶
type OutputStats struct {
// contains filtered or unexported fields
}
OutputStats tracks the number of output lines and bytes written.
func (*OutputStats) Bytes ¶
func (s *OutputStats) Bytes() int64
Bytes returns the number of bytes written.
func (*OutputStats) Lines ¶
func (s *OutputStats) Lines() int64
Lines returns the number of lines written.
Click to show internal directories.
Click to hide internal directories.