logger

package
v0.3.3-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MPL-2.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevelDebug int = 3

Higher verbosity means the message is less important

View Source
var LogLevelError int = 1
View Source
var LogLevelWarn int = 2

Functions

This section is empty.

Types

type ApiLogger added in v0.2.3

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

func (ApiLogger) Actionf added in v0.2.3

func (l ApiLogger) Actionf(format string, a ...interface{})

func (ApiLogger) Failuref added in v0.2.3

func (l ApiLogger) Failuref(format string, a ...interface{})

func (ApiLogger) Generatef added in v0.2.3

func (l ApiLogger) Generatef(format string, a ...interface{})

func (ApiLogger) Infow added in v0.3.2

func (l ApiLogger) Infow(msg string, kv ...interface{})

func (ApiLogger) Printf added in v0.2.3

func (l ApiLogger) Printf(format string, a ...interface{})

func (ApiLogger) Println added in v0.2.3

func (l ApiLogger) Println(format string, a ...interface{})

func (ApiLogger) Successf added in v0.2.3

func (l ApiLogger) Successf(format string, a ...interface{})

func (ApiLogger) Waitingf added in v0.2.3

func (l ApiLogger) Waitingf(format string, a ...interface{})

func (ApiLogger) Warningf added in v0.2.3

func (l ApiLogger) Warningf(format string, a ...interface{})

func (ApiLogger) Write added in v0.2.3

func (l ApiLogger) Write(p []byte) (n int, err error)

type CLILogger

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

func (CLILogger) Actionf

func (l CLILogger) Actionf(format string, a ...interface{})

func (CLILogger) Failuref

func (l CLILogger) Failuref(format string, a ...interface{})

func (CLILogger) Generatef

func (l CLILogger) Generatef(format string, a ...interface{})

func (CLILogger) Infow added in v0.3.2

func (l CLILogger) Infow(msg string, kv ...interface{})

func (CLILogger) Printf

func (l CLILogger) Printf(format string, a ...interface{})

func (CLILogger) Println

func (l CLILogger) Println(format string, a ...interface{})

func (CLILogger) Successf

func (l CLILogger) Successf(format string, a ...interface{})

func (CLILogger) Waitingf

func (l CLILogger) Waitingf(format string, a ...interface{})

func (CLILogger) Warningf

func (l CLILogger) Warningf(format string, a ...interface{})

func (CLILogger) Write added in v0.2.3

func (l CLILogger) Write(p []byte) (n int, err error)

type Logger

type Logger interface {
	Println(format string, a ...interface{})
	Printf(format string, a ...interface{})
	Infow(msg string, kv ...interface{})
	Actionf(format string, a ...interface{})
	Generatef(format string, a ...interface{})
	Waitingf(format string, a ...interface{})
	Successf(format string, a ...interface{})
	Warningf(format string, a ...interface{})
	Failuref(format string, a ...interface{})
	Write(p []byte) (n int, err error) // added to satisfy io.Writer interface
}

func NewApiLogger added in v0.2.3

func NewApiLogger() Logger

func NewCLILogger added in v0.2.3

func NewCLILogger(writer io.Writer) Logger

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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