Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_LOG_BUFFER_LENGTH = 2048
start() writeLog([]byte) close()
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleLoggerWriter ¶
type ConsoleLoggerWriter struct {
}
type FileLoggerWriter ¶
type FileLoggerWriter struct {
FileName string
// Rotate site
RotateSize bool
//Deprecated Rotate Daily.
RotateDaily bool
//Deprecated Rotate Hourly.
RotateHourly bool
// Keep old logfiles (.001, .002, etc)
MaxBackup int
MaxSize int //单位为M
//buffer
ChanBufferLength int
WriteFileBuffer int
// contains filtered or unexported fields
}
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
the associated LogWriter.
func (*Logger) InfoString ¶
type LoggerWrite ¶
type LoggerWrite interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.