Help us shape the future of Go! Take the 2026 Go Developer Survey

logs

package
v1.300033.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 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, retention int, logGroupClass string)

func (*Collection) AddWindowsEvent

func (config *Collection) AddWindowsEvent(eventName, logGroupName, logStreamName, eventFormat string, eventLevels []string, retention int, logGroupClass 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`
	LogGroupClass         string `log_group_class`
	TimestampFormat       string `timestamp_format`
	Timezone              string `timezone`
	MultiLineStartPattern string `multi_line_start_pattern`
	Encoding              string `encoding`
	Retention             int    `retention_in_days`
}

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`
	LogGroupClass string   `log_group_class`
	Retention     int      `retention_in_days`
}

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, eventLevels []string, retention int, logGroupClass 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, retention int, logGroupClass 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