Documentation ¶
Overview ¶
Package syslog provides a simple interface to the system log service. It can send messages to the syslog daemon using UNIX domain sockets, UDP, or TCP connections.
Index ¶
- func NewLogger(p Priority, flag int) *log.Logger
- type Priority
- type Writer
- func (w *Writer) Close() os.Error
- func (w *Writer) Crit(m string) (err os.Error)
- func (w *Writer) Debug(m string) (err os.Error)
- func (w *Writer) Emerg(m string) (err os.Error)
- func (w *Writer) Err(m string) (err os.Error)
- func (w *Writer) Info(m string) (err os.Error)
- func (w *Writer) Notice(m string) (err os.Error)
- func (w *Writer) Warning(m string) (err os.Error)
- func (w *Writer) Write(b []byte) (int, os.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
A Writer is a connection to a syslog server.
func Dial ¶
Dial establishes a connection to a log daemon by connecting to address raddr on the network net. Each write to the returned writer sends a log message with the given priority and prefix.
func 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 and prefix.
Click to show internal directories.
Click to hide internal directories.