Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Format specifies the output log format. // Accepted values are: json, logfmt Format string `mapstructure:"format"` // Level is the minimum log level that should appear on the output. Level string `mapstructure:"level"` // NoColor makes sure that no log output gets colorized. NoColor bool `mapstructure:"noColor"` }
Config holds details necessary for logging.
type Logger ¶
type Logger interface { Trace(args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Traceln(args ...interface{}) Debugln(args ...interface{}) Infoln(args ...interface{}) Warnln(args ...interface{}) Errorln(args ...interface{}) Tracef(format string, args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) WithFields(fields Fields) Logger WithField(key string, value interface{}) Logger Printf(s string, args ...interface{}) }
func NewLogrusLogger ¶
Click to show internal directories.
Click to hide internal directories.