Documentation
¶
Index ¶
- type Fields
- type Logger
- func (lg *Logger) Debug(args ...interface{})
- func (lg *Logger) DebugWithFields(l interface{}, f Fields)
- func (lg *Logger) Error(args ...interface{})
- func (lg *Logger) ErrorWithFields(l interface{}, f Fields)
- func (lg *Logger) Exit(code int)
- func (lg *Logger) Fatal(args ...interface{})
- func (lg *Logger) FatalWithFields(l interface{}, f Fields)
- func (lg *Logger) Info(args ...interface{})
- func (lg *Logger) InfoWithFields(l interface{}, f Fields)
- func (lg *Logger) Panic(args ...interface{})
- func (lg *Logger) PanicWithFields(l interface{}, f Fields)
- func (lg *Logger) SetLogFormatter(formatter logrus.Formatter)
- func (lg *Logger) SetLogLevel(level logrus.Level)
- func (lg *Logger) SetOutput(out io.Writer)
- func (lg *Logger) Warn(args ...interface{})
- func (lg *Logger) WarnWithFields(l interface{}, f Fields)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logging wrapper on top of sirupsen/logrus Wraps https://godoc.org/github.com/sirupsen/logrus
func (*Logger) Debug ¶
func (lg *Logger) Debug(args ...interface{})
Debug logs a message at level Debug on the standard logger.
func (*Logger) DebugWithFields ¶
Debug logs a message with fields at level Debug on the standard logger.
func (*Logger) Error ¶
func (lg *Logger) Error(args ...interface{})
Error logs a message at level Error on the standard logger.
func (*Logger) ErrorWithFields ¶
Debug logs a message with fields at level Debug on the standard logger.
func (*Logger) Exit ¶
Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code)
func (*Logger) Fatal ¶
func (lg *Logger) Fatal(args ...interface{})
Fatal logs a message at level Fatal on the standard logger.
func (*Logger) FatalWithFields ¶
Debug logs a message with fields at level Debug on the standard logger.
func (*Logger) Info ¶
func (lg *Logger) Info(args ...interface{})
Info logs a message at level Info on the standard logger.
func (*Logger) InfoWithFields ¶
Debug logs a message with fields at level Debug on the standard logger.
func (*Logger) Panic ¶
func (lg *Logger) Panic(args ...interface{})
Panic logs a message at level Panic on the standard logger.
func (*Logger) PanicWithFields ¶
Debug logs a message with fields at level Debug on the standard logger.
func (*Logger) SetLogFormatter ¶
func (*Logger) SetLogLevel ¶
func (*Logger) Warn ¶
func (lg *Logger) Warn(args ...interface{})
Warn logs a message at level Warn on the standard logger.
func (*Logger) WarnWithFields ¶
Debug logs a message with fields at level Debug on the standard logger.