package
1.3.1
Repository: https://github.com/codemac/deis.git
Documentation: pkg.go.dev

# README

syslog

GoDoc

Package syslog implements a syslog server library. It is based on RFC 3164, as such it does not properly parse packets with an RFC 5424 header format.

# Functions

NewBaseHandler creates BaseHandler using a specified filter.
NewFileHandler accepts all arguments expected by NewBaseHandler plus filename which is the path to the log file.
NewServer creates an idle server.

# Constants

Alert - immediate action required.
security/authorization messages.
security/authorization messages.
Crit - critical conditions.
cron messages.
system daemons.
Debug - debug-level message.
Emerg - system is unusable.
Err - error conditions.
Info - information message.
kernel messages.
local use 0.
local use 1.
local use 2.
local use 3.
local use 4.
local use 5.
local use 6.
local use 7.
line printer subsystem.
mail system.
newtork news subsystem.
Notice - normal but significant condition.
messages internal to syslogd.
historically FTP daemon.
historically NTP subsystem.
historically log audit.
historically log alert.
historically clock daemon, some operating systems use this for cron.
user-level messages.
UUCP subsystem.
Warning - warning conditions.

# Structs

BaseHandler is designed to simplify the creation of real handlers.
FileHandler implements Handler interface to save messages into a text file.
Message defines a syslog message.
Server is the wrapper for a syslog server.

# Interfaces

FatalLogger is an interface for logging package internal fatal errors.
Handler handles syslog messages.
Logger is an interface for package internal (non fatal) logging.
SyslogMessage is a textual system log message.

# Type aliases

Facility represents a message source as defined by RFC 3164.
Severity represents a level of messsage importance.