diagnostics

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level string
const (
	InfoLevel  Level = "INFO"
	ErrorLevel Level = "ERROR"
	WarnLevel  Level = "WARN"
)

type Log

type Log struct {
	Level Level
	Msg   string
}

type Logs

type Logs []Log

func Error

func Error(err error) Logs

func Info

func Info(format string, a ...interface{}) Logs

func (*Logs) Error

func (l *Logs) Error(err error)

func (*Logs) HasSucceeded

func (l *Logs) HasSucceeded() bool

HasSucceeded returns the success of the diagnostics. If there are any log entries with an ERROR level, it returns false. Otherwise, it returns true.

func (*Logs) Info

func (l *Logs) Info(format string, a ...interface{})

Jump to

Keyboard shortcuts

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