syslog

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package syslog logs to syslog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSyslogHeaderFormatter

func CreateSyslogHeaderFormatter(params string) seelog.FormatterFunc

CreateSyslogHeaderFormatter creates a seelog formatter function that formats a message as a syslog header.

func HeaderFormatter

func HeaderFormatter(facility int, rfc bool) seelog.FormatterFunc

HeaderFormatter creates a seelog formatter function that formats a message as a syslog header.

Types

type Receiver

type Receiver struct {
	// contains filtered or unexported fields
}

Receiver implements seelog.CustomReceiver

func (*Receiver) AfterParse

func (s *Receiver) AfterParse(initArgs seelog.CustomReceiverInitArgs) error

AfterParse parses the receiver configuration

func (*Receiver) Close

func (s *Receiver) Close() error

Close is a NOP in current implementation

func (*Receiver) Flush

func (s *Receiver) Flush()

Flush is a NOP in current implementation

func (*Receiver) ReceiveMessage

func (s *Receiver) ReceiveMessage(message string, _ seelog.LogLevel, _ seelog.LogContextInterface) error

ReceiveMessage process current log message

func (*Receiver) Write

func (s *Receiver) Write(message []byte) (int, error)

Write writes the message to the syslog receiver

Jump to

Keyboard shortcuts

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