logger

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 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 Logger

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

Logger logs characteristics of the matching process depending on options set by user.

func New

func New(opts string) (*Logger, error)

New creates a new Logger.

func (*Logger) Chart

func (lg *Logger) Chart()

Chart prints a chart of formats matched

func (*Logger) Close

func (lg *Logger) Close()

Close prints and chart and time elapsed

func (*Logger) Elapsed

func (lg *Logger) Elapsed()

Elapsed logs time elapsed since logger created.

func (*Logger) Error

func (lg *Logger) Error(p string, e error)

Error logs errors.

func (*Logger) IDs

func (lg *Logger) IDs(p string, ids []core.Identification)

IDs logs warnings, known, unknown and reports matches against supplied formats.

func (*Logger) IsOut

func (lg *Logger) IsOut() bool

IsOut reports if the logger is writing to os.Stdout

func (*Logger) Progress

func (lg *Logger) Progress(p string)

Progress prints file name and resets.

Jump to

Keyboard shortcuts

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