Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements a UDP-based "syslog-like" server. Like syslog, as described by RFC 3164, it expects that each packet contains a single log message and that, conversely, log messages are encapsulated in their entirety by a single packet, however, no attempt is made to parse the messages received or validate that they conform to the specification.
func (*Server) DestroyLogs ¶
DestroyLogs deletes all logs for a specified app by delegating to the server's underlying storage.Adapter.
func (*Server) ReadLogs ¶
ReadLogs returns a specified number of log lines (if available) for a specified app by delegating to the server's underlying storage.Adapter.
func (*Server) ReopenLogs ¶
ReopenLogs delegate to the server's underlying storage.Adapter to, if applicable, refresh references to underlying storage mechanisms. This is useful, for instance, to ensure logging continues smoothly after log rotation when file-based storage is in use.
func (*Server) SetDrain ¶
SetDrain permits a server's underlying drain.LogDrain to be reconfigured (replaced) at runtime.
func (*Server) SetStorageAdapter ¶
SetStorageAdapter permits a server's underlying storage.Adapter to be reconfigured (replaced) at runtime.