Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Delay ¶
type Delay struct {
// contains filtered or unexported fields
}
Delay is a syslogger.Syslogger that delays the initialization of another syslogger.Syslogger until the first time that Syslog is called.
type Fallthrough ¶
Fallthrough is a syslogger.Syslogger that logs to a backup syslogger.Sylogger in the event that there is trouble logging to the default syslogger.Syslogger.
func (*Fallthrough) Syslog ¶
func (f *Fallthrough) Syslog(p pri.Priority, msg interface{}) error
Syslog logs a message. In the case of a Fallthrough, an attempt will be made to log to a default syslogger.Syslogger, then if that fails an attempt will be made to log to a fallthrough syslogger.Sylogger, then if that fails an error is returned.
type HumanReadable ¶
HumanReadable is a syslogger.Syslogger that will format the message in a human readable way before passing the modified message to another syslogger.Syslogger.
type Multi ¶
Multi is a syslogger.Syslogger that will send messages to all of several other syslogger.Sysloggers.
type NativeSyslog ¶
type NativeSyslog struct {
// contains filtered or unexported fields
}
NativeSyslog is a syslogger.Syslogger that is a lightweight wrapper around golang's native log/syslog.Writer.
func DialNativeSyslog ¶
func DialNativeSyslog( network string, raddr string, f pri.Priority, ident string, ) (*NativeSyslog, error)
DialNativeSyslog creates a new NativeSyslog based on using log/syslog.Dial.
func NewNativeSyslog ¶
func NewNativeSyslog(f pri.Priority, ident string) (*NativeSyslog, error)
NewNativeSyslog creates a new NativeSyslog based on the given log facility and identity string.
func (*NativeSyslog) Close ¶
func (n *NativeSyslog) Close() error
Close closes a native log/syslog.Writer.
type Newliner ¶
type Newliner struct {
Syslogger Syslogger
}
Newliner is a syslogger.Syslogger that assures the last byte in a message is a newline (i.e. a literal byte 0x0A).
type NoWait ¶
type NoWait struct {
Syslogger Syslogger
}
NoWait is a syslogger.Syslogger that allows calls to Syslog to return immediately.
type Posixish ¶
type Posixish struct {
// contains filtered or unexported fields
}
Posixish is a syslogger.Syslogger that behaves much like the syslog system specified in POSIX.
func (*Posixish) Close ¶
Close closes a Posixish, which has basically no effect other than to reset all the file descriptors.
func (*Posixish) Closelog ¶
Closelog closes a Posixish, which has basically no effect other than to reset all the file descriptors.
func (*Posixish) Openlog ¶
Openlog re-initializes the Posixish based on the given opt.Option, overriding any previous values.
func (*Posixish) SetLogMask ¶
SetLogMask sets the Posixish's log mask.Mask.
type Rfc3164 ¶
Rfc3164 is a syslogger.Syslogger that will format the message in a way that is intended to be compliant with RFC 3164 before passing the modified message to another syslogger.Syslogger.
type SeverityMask ¶
SeverityMask is a syslogger.Syslogger that only forwards messages that aren't masked to another syslogger.Syslogger.
type Syslogger ¶
Syslogger allows log messages to be recorded (or forwarded to another Syslogger) in some way.