Documentation ¶
Index ¶
- Variables
- type CoreLogger
- func (instance *CoreLogger) GetConsumer() consumer.Consumer
- func (instance *CoreLogger) GetLevel() log.Level
- func (instance *CoreLogger) GetLocationFactory() location.Factory
- func (instance *CoreLogger) GetName() string
- func (instance *CoreLogger) GetProvider() log.Provider
- func (instance *CoreLogger) IsLevelEnabled(level log.Level) bool
- func (instance *CoreLogger) Log(event log.Event)
- func (instance *CoreLogger) SetConsumer(v consumer.Consumer)
- func (instance *CoreLogger) SetLevel(level log.Level)
- func (instance *CoreLogger) SetLocationFactory(v location.Factory)
- type FieldsKeySpecImpl
- type FieldsKeysSpec
- type Provider
- func (instance *Provider) GetAllLevels() []log.Level
- func (instance *Provider) GetConsumer() consumer.Consumer
- func (instance *Provider) GetFieldKeySpec() fields.KeysSpec
- func (instance *Provider) GetFormatter() formatter.Formatter
- func (instance *Provider) GetInterceptor() interceptor.Interceptor
- func (instance *Provider) GetLevel() log.Level
- func (instance *Provider) GetLevelNames() level.Names
- func (instance *Provider) GetLocationFactory() location.Factory
- func (instance *Provider) GetLogger(name string) log.Logger
- func (instance *Provider) GetName() string
- 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)
- func (instance *Provider) SetLocationFactory(v location.Factory)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultFieldsKeySpec = NewFieldsKeySpec() DefaultFieldsKeySpecFacade = NewFieldsKeySpecFacade(func() FieldsKeysSpec { return DefaultFieldsKeySpec }) )
View Source
var DefaultProvider = NewProvider("native")
Functions ¶
This section is empty.
Types ¶
type CoreLogger ¶
type CoreLogger struct { Level *log.Level Consumer consumer.Consumer LocationFactory location.Factory // 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) GetLocationFactory ¶ added in v0.1.5
func (instance *CoreLogger) GetLocationFactory() location.Factory
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) Log ¶ added in v0.3.0
func (instance *CoreLogger) Log(event log.Event)
func (*CoreLogger) SetConsumer ¶
func (instance *CoreLogger) SetConsumer(v consumer.Consumer)
func (*CoreLogger) SetLevel ¶
func (instance *CoreLogger) SetLevel(level log.Level)
func (*CoreLogger) SetLocationFactory ¶ added in v0.1.5
func (instance *CoreLogger) SetLocationFactory(v location.Factory)
type FieldsKeySpecImpl ¶ added in v0.1.5
type FieldsKeySpecImpl struct { Timestamp string Message string Logger string Error string Location string }
func (*FieldsKeySpecImpl) GetError ¶ added in v0.1.5
func (instance *FieldsKeySpecImpl) GetError() string
func (*FieldsKeySpecImpl) GetLocation ¶ added in v0.1.5
func (instance *FieldsKeySpecImpl) GetLocation() string
func (*FieldsKeySpecImpl) GetLogger ¶ added in v0.1.5
func (instance *FieldsKeySpecImpl) GetLogger() string
func (*FieldsKeySpecImpl) GetMessage ¶ added in v0.4.0
func (instance *FieldsKeySpecImpl) GetMessage() string
func (*FieldsKeySpecImpl) GetTimestamp ¶ added in v0.4.0
func (instance *FieldsKeySpecImpl) GetTimestamp() string
type FieldsKeysSpec ¶ added in v0.1.5
func NewFieldsKeySpec ¶ added in v0.1.5
func NewFieldsKeySpec() FieldsKeysSpec
func NewFieldsKeySpecFacade ¶ added in v0.5.0
func NewFieldsKeySpecFacade(provider func() FieldsKeysSpec) FieldsKeysSpec
type Provider ¶
type Provider struct { Cache log.LoggerCache Name string Level log.Level LevelNames level.Names LevelProvider log.LevelProvider Formatter formatter.Formatter Interceptor interceptor.Interceptor Consumer consumer.Consumer LocationFactory location.Factory FieldsKeysSpec FieldsKeysSpec }
func NewProvider ¶
func (*Provider) GetAllLevels ¶ added in v0.4.0
func (instance *Provider) GetAllLevels() []log.Level
func (*Provider) GetConsumer ¶
func (*Provider) GetFieldKeySpec ¶ added in v0.1.5
func (*Provider) GetFormatter ¶
func (*Provider) GetInterceptor ¶
func (instance *Provider) GetInterceptor() interceptor.Interceptor
func (*Provider) GetLevelNames ¶ added in v0.3.0
func (*Provider) GetLocationFactory ¶ added in v0.1.5
func (*Provider) SetConsumer ¶
func (*Provider) SetFormatter ¶
func (*Provider) SetInterceptor ¶
func (instance *Provider) SetInterceptor(v interceptor.Interceptor)
func (*Provider) SetLocationFactory ¶ added in v0.1.5
Click to show internal directories.
Click to hide internal directories.