Documentation
¶
Overview ¶
Package log contains a simple logging mechanism for qaz
Index ¶
- func ColorMap(s string) string
- func ColorString(s string, col Color) string
- func Debug(m string, args ...interface{})
- func Error(m string, args ...interface{})
- func Info(m string, args ...interface{})
- func SetDefault(logger Logger)
- func Warn(m string, args ...interface{})
- type Color
- type DefaultLogger
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorMap ¶
ColorMap - Used to map a particular color to a cf status phrase - returns lowercase strings in color.
func ColorString ¶
ColorString - Returns colored string
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
DefaultLogger - default logger type
func (*DefaultLogger) Colors ¶
func (l *DefaultLogger) Colors() bool
Colors - returns bool indicating whether colors should be applied to logs
func (*DefaultLogger) Debug ¶
func (l *DefaultLogger) Debug(msg string, args ...interface{})
Debug - Prints debug level log statements
func (*DefaultLogger) Error ¶
func (l *DefaultLogger) Error(msg string, args ...interface{})
Error - Prints error level log statements
func (*DefaultLogger) Info ¶
func (l *DefaultLogger) Info(msg string, args ...interface{})
Info - Prints info level log statments
func (*DefaultLogger) Warn ¶
func (l *DefaultLogger) Warn(msg string, args ...interface{})
Warn - Prints warn level log statments
Click to show internal directories.
Click to hide internal directories.