native

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 7 Imported by: 15

Documentation

Index

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 NewProvider(name string) *Provider

func (*Provider) GetConsumer

func (instance *Provider) GetConsumer() consumer.Consumer

func (*Provider) GetFormatter

func (instance *Provider) GetFormatter() formatter.Formatter

func (*Provider) GetInterceptor

func (instance *Provider) GetInterceptor() interceptor.Interceptor

func (*Provider) GetLevel

func (instance *Provider) GetLevel() log.Level

func (*Provider) SetConsumer

func (instance *Provider) SetConsumer(v consumer.Consumer)

func (*Provider) SetFormatter

func (instance *Provider) SetFormatter(v formatter.Formatter)

func (*Provider) SetInterceptor

func (instance *Provider) SetInterceptor(v interceptor.Interceptor)

func (*Provider) SetLevel

func (instance *Provider) SetLevel(level log.Level)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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