log/syslog (on golang.org and go.dev)
imports 8 packages, and imported by 0 packages
Involved Source Files
Exported Type Names
(network, raddr string
, priority Priority
, tag string
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 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.
const LOG_EMERG Priority
These are the same on Linux, BSD, and OS X.
const LOG_KERN Priority
These are the same up to LOG_FTP on Linux, BSD, and OS X.
, tag string
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 is used.
, logFlag int
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.
||The pages are generated with Golds v0.1.6-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|