Back to godoc.org
github.com/segmentio/ecs-logs / lib / syslog

package syslog

v0.2.0
Latest Go to latest
Published: Sep 25, 2017 | License: MIT | Module: github.com/segmentio/ecs-logs

Index

Constants

const (
	DefaultTemplate = "<{{.PRIVAL}}>{{.TIMESTAMP}} {{.GROUP}}[{{.STREAM}}]: {{.MSG}}"
)

func DialWriter

func DialWriter(config WriterConfig) (w lib.Writer, err error)

func NewWriter

func NewWriter(group string, stream string) (w lib.Writer, err error)

type WriterConfig

type WriterConfig struct {
	Network    string
	Address    string
	Template   string
	TimeFormat string
	Tag        string
	TLS        *tls.Config
	SocksProxy string
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier