Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPath = "log" // ./log DefaultMaxBackups = 0 // unlimited DefaultMaxSize = 100 * 1024 * 1024 // 100 MB DefaultMaxAge = 24 * time.Hour // 1 day DefaultTimeFormat = "2006010215" // yyyymmddhh )
Default values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Path string
MaxBackups int
MaxSize int64
MaxAge time.Duration
FirstRotationTime time.Time
TimeFormat string
}
A Config is configurations to initialize a SymlinkWriter.
type SymlinkWriter ¶
type SymlinkWriter struct {
// contains filtered or unexported fields
}
A SymlinkWriter implements io.WriteCloser.
func NewSymlinkWriter ¶
func NewSymlinkWriter(c Config) *SymlinkWriter
NewSymlinkWriter creates a new SymlinkWriter.
Click to show internal directories.
Click to hide internal directories.