Documentation ¶
Index ¶
- type FlumeClient
- type LogBody
- type LogHeader
- type LogItem
- type RemoteLogClient
- func (rlc *RemoteLogClient) Debug(msg string, extra interface{}) error
- func (rlc *RemoteLogClient) Error(msg string, extra interface{}) error
- func (rlc *RemoteLogClient) Info(msg string, extra interface{}) error
- func (rlc *RemoteLogClient) Stop()
- func (rlc *RemoteLogClient) Warn(msg string, extra interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlumeClient ¶
type FlumeClient struct {
// contains filtered or unexported fields
}
func NewFlumeClient ¶
func NewFlumeClient(agentIP string) *FlumeClient
func (*FlumeClient) SendLog ¶
func (c *FlumeClient) SendLog(d []byte) error
type LogBody ¶
type RemoteLogClient ¶
type RemoteLogClient struct { AppName string LogIndex string ServerAddress string // contains filtered or unexported fields }
RemoteLogClient describes the remote log client
func NewClient ¶
func NewClient(address string, appName string, logIndex string) *RemoteLogClient
NewClient returns a RemoteLogClient
func (*RemoteLogClient) Debug ¶
func (rlc *RemoteLogClient) Debug(msg string, extra interface{}) error
Debug uses debug-level
func (*RemoteLogClient) Error ¶
func (rlc *RemoteLogClient) Error(msg string, extra interface{}) error
Error uses error-level
func (*RemoteLogClient) Info ¶
func (rlc *RemoteLogClient) Info(msg string, extra interface{}) error
Info uses info-level
func (*RemoteLogClient) Warn ¶
func (rlc *RemoteLogClient) Warn(msg string, extra interface{}) error
Warn uses warn-level
Click to show internal directories.
Click to hide internal directories.