outputsyslog

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSyslogNetwork = "udp"

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevelWriteCloser

type LogLevelWriteCloser interface {
	logcommon.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 syslogcommon.Writer struct.

Jump to

Keyboard shortcuts

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