Documentation
¶
Overview ¶
Package config defines logger configuration
Index ¶
Constants ¶
View Source
const MaxRetries = 100
MaxRetries max event firing retry limit
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Command string
Args []string
URL string
Params map[string]string
MaxRetries int
}
Event represents an rotation event
type Format ¶ added in v0.3.0
type Format struct {
// contains filtered or unexported fields
}
Format url format
type Rotation ¶
type Rotation struct {
EveryMs int
MaxEntries int
Format
URL string
Codec string
Emit *Event
// contains filtered or unexported fields
}
Rotation rotation rotation config
func (Rotation) ExpiryTime ¶
ExpiryTime returns expiry time
type Stream ¶
type Stream struct {
//Rotation represents optional log stream rotation
Rotation *Rotation
FlushMod int //flush module to be set only for local testing
URL string //destination URL
Codec string //compression codec
StreamUpload bool //streams controls progressive upload to s3, g3 (skip checkup)
SamplePct *float64 //sample pct (0..100)
// contains filtered or unexported fields
}
Stream represents log stream
Click to show internal directories.
Click to hide internal directories.