flume_log

package
v0.3.7-HA.1.5.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailInfo

type DetailInfo struct {
	// contains filtered or unexported fields
}

func NewDetailInfo

func NewDetailInfo(m string) *DetailInfo

func (*DetailInfo) AddKeyValue

func (d *DetailInfo) AddKeyValue(key string, value interface{})

func (*DetailInfo) SetExtraInfo

func (d *DetailInfo) SetExtraInfo(extra interface{})

type ExtraInfo

type ExtraInfo map[string]interface{}

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

func (*FlumeClient) Stop

func (c *FlumeClient) Stop()

type FlumeLogger

type FlumeLogger struct {
	// contains filtered or unexported fields
}

func NewFlumeLogger

func NewFlumeLogger() *FlumeLogger

func NewFlumeLoggerWithAddr

func NewFlumeLoggerWithAddr(agentAddr string) *FlumeLogger

func (*FlumeLogger) Error

func (l *FlumeLogger) Error(logInfo string, detail *DetailInfo) error

func (*FlumeLogger) Info

func (l *FlumeLogger) Info(logInfo string, detail *DetailInfo) error

func (*FlumeLogger) Stop

func (l *FlumeLogger) Stop()

func (*FlumeLogger) Warn

func (l *FlumeLogger) Warn(logInfo string, detail *DetailInfo) error

type LogInfo

type LogInfo struct {
	// contains filtered or unexported fields
}

func NewLogInfo

func NewLogInfo() *LogInfo

func (*LogInfo) Serialize

func (l *LogInfo) Serialize() []byte

func (*LogInfo) String

func (l *LogInfo) String() string

type LogInfoJson

type LogInfoJson struct {
	Type     string      `json:"type"`
	Tag      string      `json:"tag"`
	PlatForm string      `json:"platform"`
	Level    string      `json:"level"`
	App      string      `json:"app"`
	Module   string      `json:"module"`
	Detail   interface{} `json:"detail"`
}

Jump to

Keyboard shortcuts

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