severity

package
v0.0.0-...-c781833 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s severity.Type) gol.LogFilter

New creates a severity filter.

Types

type Severity

type Severity struct {
	// contains filtered or unexported fields
}

Severity the struct for the filter.

func (Severity) Filter

func (f Severity) Filter(msg *gol.LogMessage) bool

Filter performs a filter check on the given message. Returns whether or not a given message should be filtered.

Jump to

Keyboard shortcuts

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