Documentation
¶
Index ¶
Constants ¶
View Source
const ( TargetName = "disk" // OptDir is the directory on disk where log files should be stored. // Default "." OptDir = "dir" )
Options in the disk's target config.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a locking representation of a file on disk. It satisfies the LogTarget interface. The lock is needed because Linux only guarantees that writes are atomic up to a certain size, but SLS does not limit the size of a request.
func NewFile ¶
NewFile returns a *disk.File that rotates over time and automatically removes old entries.
Click to show internal directories.
Click to hide internal directories.