Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMaxCollectionMB = 4 * 1024 // 4 GB
View Source
const DefaultMaxLogAge = 3 * 24 * time.Hour // 3 days
View Source
const DefaultPruneInterval = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogPruneParams ¶
type LogPruneParams struct { MaxLogAge time.Duration MaxCollectionMB int PruneInterval time.Duration }
LogPruneParams specifies how logs should be pruned.
func NewLogPruneParams ¶
func NewLogPruneParams() *LogPruneParams
NewLogPruneParams returns a LogPruneParams initialised with default values.
Click to show internal directories.
Click to hide internal directories.