inssyslog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultSyslogNetwork = "udp"

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevelWriteCloser

type LogLevelWriteCloser interface {
	insolar.LogLevelWriter
}

func ConnectDefaultSyslog

func ConnectDefaultSyslog(tag string) (LogLevelWriteCloser, error)

func ConnectRemoteSyslog

func ConnectRemoteSyslog(network, raddr string, tag string) (LogLevelWriteCloser, error)

func ConnectSyslogByParam

func ConnectSyslogByParam(outputParam, tag string) (LogLevelWriteCloser, error)

func NewSyslogLevelWriter

func NewSyslogLevelWriter(w SyslogWriteCloser) LogLevelWriteCloser

SyslogLevelWriter wraps a SyslogWriter and call the right syslog level method matching the zerolog level.

type SyslogWriteCloser

type SyslogWriteCloser interface {
	io.Closer
	io.Writer
	Debug(m string) error
	Info(m string) error
	Warning(m string) error
	Err(m string) error
	Emerg(m string) error
	Crit(m string) error
}

SyslogWriter is an interface matching a syslog.Writer struct.

Jump to

Keyboard shortcuts

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