Documentation ¶
Index ¶
- Variables
- type ApiLogger
- func (l ApiLogger) Actionf(format string, a ...interface{})
- func (l ApiLogger) Failuref(format string, a ...interface{})
- func (l ApiLogger) Generatef(format string, a ...interface{})
- func (l ApiLogger) Infow(msg string, kv ...interface{})
- func (l ApiLogger) Printf(format string, a ...interface{})
- func (l ApiLogger) Println(format string, a ...interface{})
- func (l ApiLogger) Successf(format string, a ...interface{})
- func (l ApiLogger) Waitingf(format string, a ...interface{})
- func (l ApiLogger) Warningf(format string, a ...interface{})
- func (l ApiLogger) Write(p []byte) (n int, err error)
- type CLILogger
- func (l CLILogger) Actionf(format string, a ...interface{})
- func (l CLILogger) Failuref(format string, a ...interface{})
- func (l CLILogger) Generatef(format string, a ...interface{})
- func (l CLILogger) Infow(msg string, kv ...interface{})
- func (l CLILogger) Printf(format string, a ...interface{})
- func (l CLILogger) Println(format string, a ...interface{})
- func (l CLILogger) Successf(format string, a ...interface{})
- func (l CLILogger) Waitingf(format string, a ...interface{})
- func (l CLILogger) Warningf(format string, a ...interface{})
- func (l CLILogger) Write(p []byte) (n int, err error)
- type Logger
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
}
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
Click to show internal directories.
Click to hide internal directories.