Documentation
¶
Index ¶
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func Init(level string)
- func Panicf(format string, v ...interface{})
- func Tracef(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type Config
- type LogFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf logs a formatted debug level log to the console
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf logs a formatted error level log to the console
func Infof ¶
func Infof(format string, v ...interface{})
Infof logs a formatted info level log to the console
func Panicf ¶
func Panicf(format string, v ...interface{})
Panicf logs a formatted panic level log to the console. The panic() function is called, which stops the ordinary flow of a goroutine.
Types ¶
type Config ¶
type Config struct {
Level string `mapstructure:"level"`
}
Config defines parameters for the logger
type LogFormatter ¶ added in v1.1.0
type LogFormatter struct{}
Click to show internal directories.
Click to hide internal directories.