logger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Warnings []Problem
	Errors   []Problem
	Lines    []string
	// contains filtered or unexported fields
}

func New

func New(filters []string) *Logger

func (*Logger) AddFile

func (self *Logger) AddFile(file *os.File)

func (*Logger) Close

func (self *Logger) Close()

func (*Logger) FilteredLines

func (self *Logger) FilteredLines() []string

func (*Logger) FoundProblems

func (self *Logger) FoundProblems() bool

func (*Logger) HandleError

func (self *Logger) HandleError(err error, source string)

func (*Logger) HandleWarning

func (self *Logger) HandleWarning(err error, source string)

func (*Logger) Header

func (self *Logger) Header(str string)

func (*Logger) PrintErrors

func (self *Logger) PrintErrors() int

func (*Logger) PrintRawf

func (self *Logger) PrintRawf(format string, args ...any)

func (*Logger) PrintRawln

func (self *Logger) PrintRawln(str ...string)

func (*Logger) PrintWarnings

func (self *Logger) PrintWarnings() int

func (*Logger) Printf

func (self *Logger) Printf(format string, args ...any)

func (*Logger) Println

func (self *Logger) Println(str ...string)

type Problem

type Problem struct {
	Err    error
	Source string
}

Jump to

Keyboard shortcuts

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