Documentation ¶
Index ¶
- Constants
- Variables
- type CoreLogger
- func (this *CoreLogger) Accepts(e log.Event) bool
- func (this *CoreLogger) GetLevel() level.Level
- func (this *CoreLogger) GetName() string
- func (this *CoreLogger) GetProvider() log.Provider
- func (this *CoreLogger) IsLevelEnabled(v level.Level) bool
- func (this *CoreLogger) Log(event log.Event, _ uint16)
- func (this *CoreLogger) NewEvent(l level.Level, values map[string]interface{}) log.Event
- func (this *CoreLogger) NewEventWithFields(l level.Level, f fields.ForEachEnabled) log.Event
- func (this *CoreLogger) SetLevel(v level.Level)
- type Provider
- func (this *Provider) GetAllLevels() level.Levels
- func (this *Provider) GetFieldKeysSpec() fields.KeysSpec
- func (this *Provider) GetLevel() level.Level
- func (this *Provider) GetLogger(name string) log.Logger
- func (this *Provider) GetName() string
- func (this *Provider) GetRootLogger() log.Logger
- func (this *Provider) SetLevel(v level.Level)
- type ProviderFacade
- func (this *ProviderFacade) GetAllLevels() level.Levels
- func (this *ProviderFacade) GetFieldKeysSpec() fields.KeysSpec
- func (this *ProviderFacade) GetLogger(name string) log.Logger
- func (this *ProviderFacade) GetName() string
- func (this *ProviderFacade) GetRootLogger() log.Logger
- func (this *ProviderFacade) Set(delegate log.Provider)
Constants ¶
const RootLoggerName = "ROOT"
Variables ¶
var (
DefaultLevel = level.Info
)
Functions ¶
This section is empty.
Types ¶
type CoreLogger ¶
type CoreLogger struct {
// contains filtered or unexported fields
}
func (*CoreLogger) GetLevel ¶
func (this *CoreLogger) GetLevel() level.Level
GetLevel returns the current level.Level where this log.CoreLogger is set to.
func (*CoreLogger) GetName ¶
func (this *CoreLogger) GetName() string
GetName implements log.CoreLogger#GetName()
func (*CoreLogger) GetProvider ¶
func (this *CoreLogger) GetProvider() log.Provider
GetProvider implements log.CoreLogger#GetProvider()
func (*CoreLogger) IsLevelEnabled ¶
func (this *CoreLogger) IsLevelEnabled(v level.Level) bool
IsLevelEnabled implements log.CoreLogger#IsLevelEnabled()
func (*CoreLogger) Log ¶
func (this *CoreLogger) Log(event log.Event, _ uint16)
Log implements log.CoreLogger#Log(event).
func (*CoreLogger) NewEventWithFields ¶
func (this *CoreLogger) NewEventWithFields(l level.Level, f fields.ForEachEnabled) log.Event
func (*CoreLogger) SetLevel ¶
func (this *CoreLogger) SetLevel(v level.Level)
SetLevel changes the current level.Level of this log.CoreLogger. If set to 0 it will force this CoreLogger to use DefaultLevel.
type Provider ¶
type Provider struct { Level level.Level Drain func(log.Event) // contains filtered or unexported fields }
func (*Provider) GetAllLevels ¶
GetAllLevels implements log.Provider#GetAllLevels()
func (*Provider) GetFieldKeysSpec ¶
GetFieldKeysSpec implements log.Provider#GetFieldKeysSpec()
func (*Provider) GetLevel ¶
GetLevel returns the current level.Level where this log.Provider is set to.
func (*Provider) GetRootLogger ¶
GetRootLogger implements log.Provider#GetRootLogger()
type ProviderFacade ¶
type ProviderFacade struct {
// contains filtered or unexported fields
}
func (*ProviderFacade) GetAllLevels ¶
func (this *ProviderFacade) GetAllLevels() level.Levels
GetAllLevels implements log.Provider#GetAllLevels()
func (*ProviderFacade) GetFieldKeysSpec ¶
func (this *ProviderFacade) GetFieldKeysSpec() fields.KeysSpec
GetFieldKeysSpec implements log.Provider#GetFieldKeysSpec()
func (*ProviderFacade) GetLogger ¶
func (this *ProviderFacade) GetLogger(name string) log.Logger
GetLogger implements log.Provider#GetLogger()
func (*ProviderFacade) GetName ¶
func (this *ProviderFacade) GetName() string
GetName implements log.Provider#GetName()
func (*ProviderFacade) GetRootLogger ¶
func (this *ProviderFacade) GetRootLogger() log.Logger
GetRootLogger implements log.Provider#GetRootLogger()
func (*ProviderFacade) Set ¶
func (this *ProviderFacade) Set(delegate log.Provider)