Logging

package
v0.0.0-...-a93fc24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2017 License: GPL-2.0 Imports: 8 Imported by: 8

Documentation

Index

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 NewClient

func NewClient(target string) (*Client, error)

NewClient creates a localClient or a RPC if a address is given

func NewClientOwnName

func NewClientOwnName(target, name string) (*Client, error)

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

func (client Client) DebugEvent(event *Event.Event, v ...interface{})

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

func (Client) Warn

func (client Client) Warn(v ...interface{})

Warn logs the message local/remote to on warn level

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL