Documentation ¶
Overview ¶
Package rotation writes and rotates log files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
A File is a log file with associated rotation files. The rotation files are named after the base file with a numeric suffix: base.1, base.2, and so on. Calls to Write write data to the base file. When the base file reaches the given size, it is renamed to base.1 (and base.1 is renamed to base.2, and so on) and a new base file is opened for subsequent writes.
Any errors encountered while rotating files are ignored. Only errors opening and writing the base file are reported.
Click to show internal directories.
Click to hide internal directories.