Documentation ¶
Index ¶
- Constants
- func ConfigureAllLoggers(newdefaultLogger *logrus.Logger, debugConfig string)
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func EnableLineNumbers()
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func GetLoggerForPrefix(prefix string) *logrus.Entry
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Log(level logrus.Level, args ...interface{})
- func Logf(level logrus.Level, format string, args ...interface{})
- func Logln(level logrus.Level, args ...interface{})
- func Must(err error) bool
- func MustFatal(err error) bool
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetLevel(level logrus.Level)
- func Should(err error) bool
- func ShouldWarn(err error) bool
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Traceln(args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
- func WithError(err error) *logrus.Entry
- func WithField(key string, value interface{}) *logrus.Entry
- func WithFields(fields logrus.Fields) *logrus.Entry
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ConfigureAllLoggers ¶
ConfigureLogger takes in a logger object and configures the logger depending on environment variables. Configured based on the GOLANG_DEBUG environment variable
func EnableLineNumbers ¶
func EnableLineNumbers()
EnableLineNumbers log output of linenumbers as logerus fields
func GetLoggerForPrefix ¶
GetLoggerForPrefix gets the logger for a certain prefix if it has been configured
func MustFatal ¶ added in v0.1.12
MustFatal Checks if an error occured, otherwise stop the program, returns true if error is not nil
func Should ¶
Should Checks if an error occured, otherwise prints it as error, returns true if error is not nil
func ShouldWarn ¶
ShouldWarn Checks if an error occured, otherwise prints it as warning, returns true if error is not nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.