log

package
v0.0.0-...-0c5dbc6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertLogLevel

func AlertLogLevel() string

AlertLogLevel called when create new log notifier

func NewNotifier

func NewNotifier(logger *zap.Logger) notifier.Notifier

NewNotifier function returns new instance of Log.

func String

func String() string

String function used by pattern match when parse interpret options.

Types

type Log

type Log struct {
	Logger *zap.Logger
}

Log struct implements notifier.Notifier interface. Log struct output alert information using application logger.

func (*Log) Alert

func (log *Log) Alert(expiration time.Time, ingress *source.Ingress, tls *source.IngressTLS, opt notifier.Option) error

Alert defined by notifier.Notifier interface. This function create and print fields using log package.

Jump to

Keyboard shortcuts

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