Documentation ¶
Overview ¶
Package remotelog is a plugin that enables log messages being sent via UDP to a central ELK stack for debugging. It is disabled by default and when enabled, additionally, logger.disableEvents=false in config.json needs to be set. The destination can be set via logger.remotelog.serverAddress. All events according to logger.level in config.json are sent.
Index ¶
Constants ¶
View Source
const ( // CfgLoggerRemotelogServerAddress defines the config flag of the server address. CfgLoggerRemotelogServerAddress = "logger.remotelog.serverAddress" // CfgDisableEvents defines the config flag for disabling logger events. CfgDisableEvents = "logger.disableEvents" // PluginName is the name of the remote log plugin. PluginName = "RemoteLog" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RemoteLoggerConn ¶ added in v0.2.0
type RemoteLoggerConn struct {
// contains filtered or unexported fields
}
RemoteLoggerConn is a wrapper for a connection to our RemoteLog server.
func RemoteLogger ¶ added in v0.2.0
func RemoteLogger() *RemoteLoggerConn
RemoteLogger represents a connection to our remote log server.
func (*RemoteLoggerConn) Send ¶ added in v0.2.0
func (r *RemoteLoggerConn) Send(msg interface{}) error
Send sends a message on the RemoteLoggers connection.
Click to show internal directories.
Click to hide internal directories.