handler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleHandler

type ConsoleHandler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewConsoleHandler

func NewConsoleHandler() *ConsoleHandler

func (*ConsoleHandler) GetFormatter

func (h *ConsoleHandler) GetFormatter() formatter.Formatter

GetFormatter Gets the formatter.

func (*ConsoleHandler) Handle

func (h *ConsoleHandler) Handle(r record.Record) bool

Handle Handles a record.

func (*ConsoleHandler) IsHandling

func (h *ConsoleHandler) IsHandling(r record.Record) bool

IsHandling Checks whether the given record will be handled by this handler.

func (*ConsoleHandler) SetFormatter

func (h *ConsoleHandler) SetFormatter(f formatter.Formatter) *ConsoleHandler

SetFormatter Sets the formatter.

Jump to

Keyboard shortcuts

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