loggers

package
v0.0.0-...-f5e3d92 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination interface {
	PrintMessage(message uatu.Message) error
	Setup() error
	Stop()
}

Destination for a logger

type Logger

type Logger struct {
	config.Logger

	Destination Destination
	// contains filtered or unexported fields
}

Logger item

func Load

func Load(settings settings.ISettings) ([]Logger, error)

Load the log file

func (Logger) Check

func (l Logger) Check(message uatu.Message) bool

Check checks to see if the message should be logged

func (*Logger) SetMaxLevel

func (l *Logger) SetMaxLevel(maxLevel int)

SetMaxLevel Sets the max level for a logger

func (*Logger) UpdateDestination

func (l *Logger) UpdateDestination() error

UpdateDestination updates the destination

Jump to

Keyboard shortcuts

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