Documentation ¶
Index ¶
- type Consumer
- type Owner
- type WritingConsumer
- func (instance *WritingConsumer) Consume(event log.Event, source log.CoreLogger)
- func (instance *WritingConsumer) GetColorSupport() color.Support
- func (instance *WritingConsumer) GetFormatter() formatter.Formatter
- func (instance *WritingConsumer) GetInterceptor() interceptor.Interceptor
- func (instance *WritingConsumer) SetFormatter(v formatter.Formatter)
- func (instance *WritingConsumer) SetInterceptor(v interceptor.Interceptor)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.