Documentation ¶
Index ¶
- Constants
- func ConfigureAllLoggers(newdefaultLogger *logrus.Logger, debugConfig string)
- func ConfigureInternalLogger(newInternalLogger *logrus.Logger)
- 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.FieldLogger
- 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)
- func MustFatal(err error)
- 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)
- func ShouldWarn(err error)
- 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 ConfigureInternalLogger ¶
ConfigureInternalLogger instantiates a interal logger to debug the logger
func EnableLineNumbers ¶
func EnableLineNumbers()
EnableLineNumbers log output of linenumbers as logerus fields
func GetLoggerForPrefix ¶
func GetLoggerForPrefix(prefix string) logrus.FieldLogger
GetLoggerForPrefix gets the logger for a certain prefix if it has been configured
func MustFatal ¶ added in v0.1.12
func MustFatal(err error)
MustFatal Checks if an error occured, otherwise stop the program
func Should ¶
func Should(err error)
Should Checks if an error occured, otherwise prints it as error
func ShouldWarn ¶
func ShouldWarn(err error)
ShouldWarn Checks if an error occured, otherwise prints it as warning
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.