Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FmtCSV ¶
FmtCSV struct describes the different manipulations and processing that a CSV LogFormatter can apply to an event.Event
type FmtCSVBuilder ¶
type FmtCSVBuilder struct {
// contains filtered or unexported fields
}
FmtCSVBuilder struct allows creating custom CSV Formatters. Its default values will leave its supported options set as false, so it's not required to always use this struct.
Its options will allow: - setting Unix micros as timestamp (in string format) - setting a JSON metadata formatter instead of text-based
func (*FmtCSVBuilder) Build ¶
func (b *FmtCSVBuilder) Build() *FmtCSV
Build method will create a (custom) FmtCSV object based on the builder's configuration, and return a pointer to it
func (*FmtCSVBuilder) JSON ¶
func (b *FmtCSVBuilder) JSON() *FmtCSVBuilder
JSON method will set the FmtCSV's metadata as JSON format
func (*FmtCSVBuilder) Unix ¶
func (b *FmtCSVBuilder) Unix() *FmtCSVBuilder
Unix method will set the FmtCSV's timestamp as Unix micros