log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Log Processor Plugin

The log processor writes events into logs at configured level. This plugin requires serializer. If event serialization fails, event will be skipped.

Configuration

[[processors]]
  [processors.log]
    # logging level, "debug", "info" or "warn"
    level = "info"
  [processors.log.serializer]
    type = "json"
    data_only = false

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	*core.BaseProcessor `mapstructure:"-"`
	Level               string `mapstructure:"level"`
	// contains filtered or unexported fields
}

func (*Log) Close

func (p *Log) Close() error

func (*Log) Init

func (p *Log) Init() error

func (*Log) Run

func (p *Log) Run()

func (*Log) SetSerializer

func (p *Log) SetSerializer(s core.Serializer)

Jump to

Keyboard shortcuts

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