gelf

package
v0.0.0-...-ee5be7b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LevelEncoder

func LevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)

Types

type Config

type Config struct {
	KeyValuePairs []KeyValuePair `logos-config:"key_value_pairs"`
}

type Encoder

type Encoder struct {
	Fields []zapcore.Field
	zapcore.Encoder
}

func (*Encoder) EncodeEntry

func (e *Encoder) EncodeEntry(enc zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error)

type KeyValuePair

type KeyValuePair struct {
	Key   string `logos-config:"key"`
	Value string `logos-config:"value"`
}

Jump to

Keyboard shortcuts

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