Documentation ¶
Index ¶
- func Bold(a ...interface{})
- func Boldf(format string, a ...interface{})
- func Debug(a ...interface{})
- func Debugf(format string, a ...interface{})
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fields(mapper FieldMapper)
- func Highlight(a ...interface{})
- func Highlightf(format string, a ...interface{})
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func IsVerbose() bool
- func Print(a ...interface{})
- func Regular(a ...interface{})
- func Regularf(format string, a ...interface{})
- func SetEcho(echo bool)
- func SetTheme(theme ThemeType)
- func SetVerbose(verbose bool)
- func Table(mapper FieldMapper)
- func ThemeToString(theme ThemeType) string
- func Warning(a ...interface{})
- func Warningf(format string, a ...interface{})
- type FieldMapper
- type ThemeType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Boldf ¶ added in v0.6.0
func Boldf(format string, a ...interface{})
Boldf log text with format.
func Highlightf ¶
func Highlightf(format string, a ...interface{})
Highlightf log as highlighted text
func Print ¶ added in v0.5.0
func Print(a ...interface{})
Print is effectively a pass-through to fmt.Print
func Table ¶
func Table(mapper FieldMapper)
Table logs key value pairs as a table with keys for the header
func ThemeToString ¶ added in v0.9.9
ThemeToString conversion from ThemeType to string
Types ¶
type FieldMapper ¶
FieldMapper type returns fields as a map for logging
Click to show internal directories.
Click to hide internal directories.