logger

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RootLoggerName = "ROOT"

Variables

View Source
var (
	DefaultLevel = level.Info
)

Functions

This section is empty.

Types

type CoreLogger

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

func (*CoreLogger) Accepts

func (this *CoreLogger) Accepts(e log.Event) bool

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) NewEvent

func (this *CoreLogger) NewEvent(l level.Level, values map[string]interface{}) 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

func (this *Provider) GetAllLevels() level.Levels

GetAllLevels implements log.Provider#GetAllLevels()

func (*Provider) GetFieldKeysSpec

func (this *Provider) GetFieldKeysSpec() fields.KeysSpec

GetFieldKeysSpec implements log.Provider#GetFieldKeysSpec()

func (*Provider) GetLevel

func (this *Provider) GetLevel() level.Level

GetLevel returns the current level.Level where this log.Provider is set to.

func (*Provider) GetLogger

func (this *Provider) GetLogger(name string) log.Logger

GetLogger implements log.Provider#GetLogger()

func (*Provider) GetName

func (this *Provider) GetName() string

GetName implements log.Provider#GetName()

func (*Provider) GetRootLogger

func (this *Provider) GetRootLogger() log.Logger

GetRootLogger implements log.Provider#GetRootLogger()

func (*Provider) SetLevel

func (this *Provider) SetLevel(v level.Level)

SetLevel changes the current level.Level of this log.Provider. If set to 0 it will force this Provider to use DefaultLevel.

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)

Jump to

Keyboard shortcuts

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