logs

package
v1.247349.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	// file based logs
	Files *Files
	// windows events
	WinEvents *Events
}

func (*Collection) AddLogFile

func (config *Collection) AddLogFile(filePath, logGroupName, logStreamName string, timestampFormat, timezone, multiLineStartPattern, encoding string)

func (*Collection) AddWindowsEvent

func (config *Collection) AddWindowsEvent(eventName, logGroupName, logStreamName, eventFormat string, eventLevels []string)

func (*Collection) ToMap

func (config *Collection) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Config

type Config struct {
	FilePath              string `file_path`
	LogGroup              string `log_group_name`
	LogStream             string `log_stream_name`
	TimestampFormat       string `timestamp_format`
	Timezone              string `timezone`
	MultiLineStartPattern string `multi_line_start_pattern`
	Encoding              string `encoding`
}

func (*Config) ToMap

func (config *Config) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type EventConfig

type EventConfig struct {
	EventName   string   `event_name`
	EventLevels []string `event_levels`
	EventFormat string   `event_format`
	LogGroup    string   `log_group_name`
	LogStream   string   `log_stream_name`
}

func (*EventConfig) ToMap

func (config *EventConfig) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Events

type Events struct {
	EventConfigs []*EventConfig
}

func (*Events) AddWindowsEvent

func (config *Events) AddWindowsEvent(eventName, logGroupName, logStreamName, eventFormat string, eventLevls []string)

func (*Events) ToMap

func (config *Events) ToMap(ctx *runtime.Context) (string, map[string]interface{})

type Files

type Files struct {
	FileConfigs []*Config
}

func (*Files) AddLogFile

func (config *Files) AddLogFile(filePath, logGroupName, logStreamName string, timestampFormat, timezone, multiLineStartPattern, encoding string)

func (*Files) ToMap

func (config *Files) ToMap(ctx *runtime.Context) (string, map[string]interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL