Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
Backup holds backup log file' path & create time.
type Config ¶
type Config struct { // Configs of Log Rotation. OutputPath string `json:"output_path" toml:"output_path"` // Log file path. // Maximum size of a log file before it gets rotated. // Unit is MB. MaxSize int64 `json:"max_size" toml:"max_size"` // Maximum number of backup log files to retain. MaxBackups int `json:"max_backups" toml:"max_backups"` // Timestamp in backup log file. Default is to use UTC time. LocalTime bool `json:"local_time" toml:"local_time"` // After write BytesPerSync bytes flush data to storage media(hint). BytesPerSync int64 `json:"bytes_per_sync" toml:"bytes_per_sync"` // Develop mode. Default is false. // It' used for testing, if it's true, the page cache control unit could not be aligned to page cache size. Developed bool `json:"developed" toml:"developed"` }
Config of Logro.
Click to show internal directories.
Click to hide internal directories.