native

package module
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 9 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFieldsKeySpec = NewFieldsKeySpec()
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) 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)

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 {
	fields.KeysSpec

	Location string
	Logger   string
	Error    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

type FieldsKeysSpec added in v0.1.5

type FieldsKeysSpec interface {
	fields.KeysSpec

	GetLocation() string
}

func NewFieldsKeySpec added in v0.1.5

func NewFieldsKeySpec() FieldsKeysSpec

type Provider

type Provider struct {
	log.Provider

	Level         log.Level
	LevelProvider log.LevelProvider

	Formatter       formatter.Formatter
	Interceptor     interceptor.Interceptor
	Consumer        consumer.Consumer
	LocationFactory location.Factory
	FieldsKeysSpec  FieldsKeysSpec
}

func NewProvider

func NewProvider(name string) *Provider

func (*Provider) GetConsumer

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

func (*Provider) GetFieldKeySpec added in v0.1.5

func (instance *Provider) GetFieldKeySpec() fields.KeysSpec

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) GetLocationFactory added in v0.1.5

func (instance *Provider) GetLocationFactory() location.Factory

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)

func (*Provider) SetLocationFactory added in v0.1.5

func (instance *Provider) SetLocationFactory(v location.Factory)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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