Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶ added in v1.2.54
type Logger interface {
// Debugf logs a debug message with formatted arguments.
Debugf(format string, args ...interface{})
// Errorf logs an error message with formatted arguments and returns an error.
Errorf(format string, args ...interface{}) error
// Infof logs an info message with formatted arguments.
Infof(format string, args ...interface{})
// IsTerminal checks if the output is a terminal.
IsTerminal() bool
// Warnf logs a warning message with formatted arguments.
Warnf(format string, args ...interface{})
}
type Object ¶
type Object struct {
}
Object is the reported object used by the tool. It prints the messages to the standard output or error streams.
func CreateReporter ¶ added in v1.2.37
func CreateReporter() *Object
CreateReporter returns a new reporter
func (*Object) Errorf ¶
Errorf prints an error message with the given format and arguments. It also return an error containing the same information, which will be usually discarded, except when the caller needs to report the error and also return it.
func (*Object) IsTerminal ¶ added in v1.1.1
Determine whether the reporter output is meant for the terminal or whether it's piped or redirected to a file.
Click to show internal directories.
Click to hide internal directories.