gelf

package
v3.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CompressionNone don't use compression.
	CompressionNone = 0

	// CompressionGzip use gzip compression.
	CompressionGzip = 1

	// CompressionZlib use zlib compression.
	CompressionZlib = 2

	// MinChunkSize minimal chunk size in bytes.
	MinChunkSize = 512

	// MaxChunkSize maximal chunk size in bytes.
	// See https://docs.graylog.org/en/3.2/pages/gelf.html#chunking.
	MaxChunkSize = 8192

	// MaxChunkCount maximal chunk per message count.
	// See https://docs.graylog.org/en/3.2/pages/gelf.html#chunking.
	MaxChunkCount = 128

	// DefaultChunkSize is default WAN chunk size.
	DefaultChunkSize = 1420
)

Variables

This section is empty.

Functions

func NewTcpCore

func NewTcpCore(options ...Option) (_ zapcore.Core, err error)

NewTcpCore zap core constructor.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option interface.

func Addr

func Addr(value string) Option

Addr set GELF address.

func Host

func Host(value string) Option

Host set GELF host.

func Level

func Level(value zapcore.Level) Option

Level set logging level.

Jump to

Keyboard shortcuts

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