Documentation ¶
Index ¶
- Constants
- Variables
- type Fields
- type FluentdEngine
- type FluentdEngineConfig
- type LogClient
- func (c *LogClient) AddEngine(engineConfig interface{}) error
- func (c *LogClient) Debug(message ...interface{})
- func (c *LogClient) Error(message ...interface{})
- func (c *LogClient) Fatal(message ...interface{})
- func (c *LogClient) Info(message ...interface{})
- func (c *LogClient) Init(application string, instance string)
- func (c *LogClient) InitEngines(context context.Context) error
- func (c *LogClient) NewScope(name string) *Scope
- func (c *LogClient) Warn(message ...interface{})
- func (c *LogClient) WithFields(field Fields) *Scope
- type LogData
- type LogEngine
- type LogrusEngine
- type LogrusEngineConfig
- type Scope
- func (c *Scope) Debug(message ...interface{})
- func (c *Scope) Error(message ...interface{})
- func (c *Scope) Fatal(message ...interface{})
- func (c *Scope) Info(message ...interface{})
- func (c *Scope) SetFields(fields Fields) *Scope
- func (c *Scope) Warn(message ...interface{})
- func (c *Scope) WithFields(fields Fields) *Scope
- type YouLogClient
- type YouLogEngine
- type YouLogServiceEngineConfig
Constants ¶
View Source
const ( LEVEL_DEBUG = 1 LEVEL_INFO = 2 LEVEL_WARN = 3 LEVEL_ERROR = 4 LEVEL_FATAL = 5 )
Variables ¶
View Source
var DefaultScope = "Global"
Functions ¶
This section is empty.
Types ¶
type FluentdEngine ¶
type FluentdEngine struct { Config *FluentdEngineConfig // contains filtered or unexported fields }
func (*FluentdEngine) Init ¶
func (e *FluentdEngine) Init() error
type FluentdEngineConfig ¶
type FluentdEngineConfig struct {
Url string
}
type LogClient ¶
type LogClient struct { Logger *logrus.Logger Application string Instance string Engines []LogEngine }
func (*LogClient) WithFields ¶
type LogrusEngine ¶
type LogrusEngine struct { Logger *logrus.Logger Config *LogrusEngineConfig // contains filtered or unexported fields }
func (*LogrusEngine) Init ¶
func (e *LogrusEngine) Init() error
type LogrusEngineConfig ¶
type LogrusEngineConfig struct { }
type Scope ¶
func (*Scope) WithFields ¶
type YouLogClient ¶
type YouLogClient struct { Address string // contains filtered or unexported fields }
func NewYouLogClient ¶
func NewYouLogClient(address string) *YouLogClient
func (*YouLogClient) GetClient ¶
func (c *YouLogClient) GetClient() (logservice.LogServiceClient, error)
func (*YouLogClient) Init ¶
func (c *YouLogClient) Init() error
type YouLogEngine ¶
type YouLogEngine struct { Config *YouLogServiceEngineConfig // contains filtered or unexported fields }
func (*YouLogEngine) Init ¶
func (e *YouLogEngine) Init() error
type YouLogServiceEngineConfig ¶
type YouLogServiceEngineConfig struct {
Address string `mapstructure:"address"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.