consumer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Consume(event log.Event, source log.CoreLogger)
}

type Owner

type Owner interface {
	GetFormatter() formatter.Formatter
	GetInterceptor() interceptor.Interceptor
}

type WritingConsumer

type WritingConsumer struct {
	EventFormatter formatter.Formatter
	Interceptor    interceptor.Interceptor
	ColorMode      color.Mode
	HintsProvider  func(event log.Event, source log.CoreLogger) hints.Hints

	PrintErrorOnColorInitialization bool
	// contains filtered or unexported fields
}

func NewWritingConsumer

func NewWritingConsumer(owner Owner, out io.Writer) *WritingConsumer

func (*WritingConsumer) Consume

func (instance *WritingConsumer) Consume(event log.Event, source log.CoreLogger)

func (*WritingConsumer) GetColorSupport

func (instance *WritingConsumer) GetColorSupport() color.Support

func (*WritingConsumer) GetFormatter

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

func (*WritingConsumer) GetInterceptor

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

func (*WritingConsumer) SetFormatter

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

func (*WritingConsumer) SetInterceptor

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

Jump to

Keyboard shortcuts

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