Documentation ¶
Index ¶
- type Client
- func (client Client) Debug(v ...interface{})
- func (client Client) DebugEvent(event *Event.Event, v ...interface{})
- func (client Client) Disconnect()
- func (client Client) Error(v ...interface{})
- func (client Client) Info(v ...interface{})
- func (client Client) Log(event *Event.Event, message *LogServer.LogMessage)
- func (client Client) LogMultiple(messages *[]*LogServer.LogMessage)
- func (client Client) Warn(v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client combines locallogging with factorlog and remote logging via RPC
func NewClientOwnName ¶
NewClientOwnName creates a localClient or a RPC if a address is given and uses the given name as source
func NewLocalClient ¶
func NewLocalClient() *Client
NewLocalClient constructs a new client, which logs to stdout
func (Client) Debug ¶
func (client Client) Debug(v ...interface{})
Debug logs the message local/remote to on debug level
func (Client) DebugEvent ¶
DebugEvent logs the event and the message local/remote to on debug level
func (Client) Disconnect ¶
func (client Client) Disconnect()
Disconnect closes the connection to the remote logServer
func (Client) Error ¶
func (client Client) Error(v ...interface{})
Error logs the message local/remote to on error level
func (Client) Info ¶
func (client Client) Info(v ...interface{})
Info logs the message local/remote to on info level
func (Client) Log ¶
func (client Client) Log(event *Event.Event, message *LogServer.LogMessage)
Log sends the logMessage to the remote logServer, log an error to stdout
func (Client) LogMultiple ¶
func (client Client) LogMultiple(messages *[]*LogServer.LogMessage)
LogMultiple sends the logMessages to the remote logServer, log an error to stdout