Documentation ¶
Index ¶
- Variables
- type CoreLogger
- func (instance *CoreLogger) GetConsumer() consumer.Consumer
- func (instance *CoreLogger) GetLevel() log.Level
- func (instance *CoreLogger) GetName() string
- func (instance *CoreLogger) GetProvider() log.Provider
- func (instance *CoreLogger) IsLevelEnabled(level log.Level) bool
- func (instance *CoreLogger) LogEvent(event log.Event)
- func (instance *CoreLogger) SetConsumer(v consumer.Consumer)
- func (instance *CoreLogger) SetLevel(level log.Level)
- type Provider
- func (instance *Provider) GetConsumer() consumer.Consumer
- func (instance *Provider) GetFormatter() formatter.Formatter
- func (instance *Provider) GetInterceptor() interceptor.Interceptor
- func (instance *Provider) GetLevel() log.Level
- func (instance *Provider) SetConsumer(v consumer.Consumer)
- func (instance *Provider) SetFormatter(v formatter.Formatter)
- func (instance *Provider) SetInterceptor(v interceptor.Interceptor)
- func (instance *Provider) SetLevel(level log.Level)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProvider = NewProvider("native")
Functions ¶
This section is empty.
Types ¶
type CoreLogger ¶
type CoreLogger struct { Level *log.Level Consumer consumer.Consumer // contains filtered or unexported fields }
func (*CoreLogger) GetConsumer ¶
func (instance *CoreLogger) GetConsumer() consumer.Consumer
func (*CoreLogger) GetLevel ¶
func (instance *CoreLogger) GetLevel() log.Level
func (*CoreLogger) GetName ¶
func (instance *CoreLogger) GetName() string
func (*CoreLogger) GetProvider ¶
func (instance *CoreLogger) GetProvider() log.Provider
func (*CoreLogger) IsLevelEnabled ¶
func (instance *CoreLogger) IsLevelEnabled(level log.Level) bool
func (*CoreLogger) LogEvent ¶
func (instance *CoreLogger) LogEvent(event log.Event)
func (*CoreLogger) SetConsumer ¶
func (instance *CoreLogger) SetConsumer(v consumer.Consumer)
func (*CoreLogger) SetLevel ¶
func (instance *CoreLogger) SetLevel(level log.Level)
type Provider ¶
type Provider struct { log.Provider Level log.Level LevelProvider log.LevelProvider EventFormatter formatter.Formatter Interceptor interceptor.Interceptor Consumer consumer.Consumer }
func NewProvider ¶
func (*Provider) GetConsumer ¶
func (*Provider) GetFormatter ¶
func (*Provider) GetInterceptor ¶
func (instance *Provider) GetInterceptor() interceptor.Interceptor
func (*Provider) SetConsumer ¶
func (*Provider) SetFormatter ¶
func (*Provider) SetInterceptor ¶
func (instance *Provider) SetInterceptor(v interceptor.Interceptor)
Click to show internal directories.
Click to hide internal directories.