gelf

package
v0.0.0-...-9823ec8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package gelf just return a gelf writer with the configuration provided via Sonic ExtraConfig

Index

Constants

View Source
const Namespace = "github.com/starvn/sonic/telemetry/gelf"

Variables

View Source
var (
	ErrWrongConfig = fmt.Errorf("getting the extra config for the sonic/telemetry/gelf package")
	ErrMissingAddr = fmt.Errorf("missing addr to send gelf logs")
)

Functions

func ConfigGetter

func ConfigGetter(e config.ExtraConfig) interface{}

func NewWriter

func NewWriter(cfg config.ExtraConfig) (io.Writer, error)

Types

type Config

type Config struct {
	Addr      string
	EnableTCP bool
}

Jump to

Keyboard shortcuts

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