go1.20.5
GoThrough

syslog.LOG_ALERT

const LOG_ALERT = iota

syslog.LOG_AUTH

const LOG_AUTH = iota

syslog.LOG_AUTHPRIV

const LOG_AUTHPRIV = iota

syslog.LOG_CRIT

const LOG_CRIT = iota

syslog.LOG_CRON

const LOG_CRON = iota

syslog.LOG_DAEMON

const LOG_DAEMON = iota

syslog.LOG_DEBUG

const LOG_DEBUG = iota

syslog.LOG_EMERG

// From /usr/include/sys/syslog.h. // These are the same on Linux, BSD, and OS X. const LOG_EMERG = iota

syslog.LOG_ERR

const LOG_ERR = iota

syslog.LOG_FTP

const LOG_FTP = iota

syslog.LOG_INFO

const LOG_INFO = iota

syslog.LOG_KERN

// From /usr/include/sys/syslog.h. // These are the same up to LOG_FTP on Linux, BSD, and OS X. const LOG_KERN = iota

syslog.LOG_LOCAL0

const LOG_LOCAL0 = iota

syslog.LOG_LOCAL1

const LOG_LOCAL1 = iota

syslog.LOG_LOCAL2

const LOG_LOCAL2 = iota

syslog.LOG_LOCAL3

const LOG_LOCAL3 = iota

syslog.LOG_LOCAL4

const LOG_LOCAL4 = iota

syslog.LOG_LOCAL5

const LOG_LOCAL5 = iota

syslog.LOG_LOCAL6

const LOG_LOCAL6 = iota

syslog.LOG_LOCAL7

const LOG_LOCAL7 = iota

syslog.LOG_LPR

const LOG_LPR = iota

syslog.LOG_MAIL

const LOG_MAIL = iota

syslog.LOG_NEWS

const LOG_NEWS = iota

syslog.LOG_NOTICE

const LOG_NOTICE = iota

syslog.LOG_SYSLOG

const LOG_SYSLOG = iota

syslog.LOG_USER

const LOG_USER = iota

syslog.LOG_UUCP

const LOG_UUCP = iota

syslog.LOG_WARNING

const LOG_WARNING = iota

syslog.Dial

// Dial establishes a connection to a log daemon by connecting to // address raddr on the specified network. Each write to the returned // writer sends a log message with the facility and severity // (from priority) and tag. If tag is empty, the os.Args[0] is used. // If network is empty, Dial will connect to the local syslog server. // Otherwise, see the documentation for net.Dial for valid values // of network and raddr. func Dial(network string, raddr string, priority Priority, tag string) (*Writer, error)

syslog.New

// New establishes a new connection to the system log daemon. Each // write to the returned writer sends a log message with the given // priority (a combination of the syslog facility and severity) and // prefix tag. If tag is empty, the os.Args[0] is used. func New(priority Priority, tag string) (*Writer, error)

syslog.NewLogger

// NewLogger creates a log.Logger whose output is written to the // system log service with the specified priority, a combination of // the syslog facility and severity. The logFlag argument is the flag // set passed through to log.New to create the Logger. func NewLogger(p Priority, logFlag int) (*log.Logger, error)