filter

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(handler log.Handler, pattern string) (log.Handler, error)

Load console handler

Types

type Filter added in v0.1.9

type Filter struct {
	Handler log.Handler
	Level   log.Level
}

Filter logs by level. Can be initialized manually or by the Load function.

func (*Filter) Log added in v0.1.9

func (f *Filter) Log(entry log.Entry)

Jump to

Keyboard shortcuts

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