Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is a logging unit with constant connection type, address, prefixTag and priority contains ring buffer for unsent messages
func NewWriter ¶
func NewWriter(connection, addr, prefix string, priority syslog.Priority, bufferLen int) (*Writer, error)
NewWriter creates an logging instance with given parameters
func (*Writer) Reconnect ¶
Reconnect tries to create new logger connection with old parameters; if succeed sends messages from ring buffer and erases them
Click to show internal directories.
Click to hide internal directories.