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 Output Plugin

The log output writes events into logs at configured level. This plugin requires serializer.

Configuration

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

func (*Log) Close

func (o *Log) Close() error

func (*Log) Init

func (o *Log) Init() error

func (*Log) Run

func (o *Log) Run()

func (*Log) SetSerializer

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

Jump to

Keyboard shortcuts

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