Documentation ¶
Index ¶
- Constants
- func AutoStartProfileServer(port uint16)
- 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 Indent(arg interface{}) string
- 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 PanicHandler()
- 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 ShouldWrap(err error, msg string, args ...interface{}) bool
- func Timer(idkey string) string
- func TimerEnd(idkey string) string
- 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 Wrap(err error, msg string, args ...interface{}) error
- func WrapFinal(err *error, msg string, args ...interface{})
- type Entry
- func (e *Entry) Debug(args ...interface{})
- func (e *Entry) Debugf(format string, args ...interface{})
- func (e *Entry) Debugln(args ...interface{})
- func (e *Entry) Error(args ...interface{})
- func (e *Entry) Errorf(format string, args ...interface{})
- func (e *Entry) Errorln(args ...interface{})
- func (e *Entry) Fatal(args ...interface{})
- func (e *Entry) Fatalf(format string, args ...interface{})
- func (e *Entry) Fatalln(args ...interface{})
- func (e *Entry) Indent(arg interface{}) string
- func (e *Entry) Info(args ...interface{})
- func (e *Entry) Infof(format string, args ...interface{})
- func (e *Entry) Infoln(args ...interface{})
- func (e *Entry) Log(level logrus.Level, args ...interface{})
- func (e *Entry) Logf(level logrus.Level, format string, args ...interface{})
- func (e *Entry) Logln(level logrus.Level, args ...interface{})
- func (e *Entry) Must(err error)
- func (e *Entry) MustFatal(err error)
- func (e *Entry) Panic(args ...interface{})
- func (e *Entry) PanicHandler()
- func (e *Entry) Panicf(format string, args ...interface{})
- func (e *Entry) Panicln(args ...interface{})
- func (e *Entry) Print(args ...interface{})
- func (e *Entry) Printf(format string, args ...interface{})
- func (e *Entry) Println(args ...interface{})
- func (e *Entry) Should(err error) bool
- func (e *Entry) ShouldWarn(err error) bool
- func (e *Entry) ShouldWrap(err error, msg string, args ...interface{}) bool
- func (e *Entry) Timer(idkey string) string
- func (e *Entry) TimerEnd(idkey string) string
- func (e *Entry) Trace(args ...interface{})
- func (e *Entry) Tracef(format string, args ...interface{})
- func (e *Entry) Traceln(args ...interface{})
- func (e *Entry) Warn(args ...interface{})
- func (e *Entry) Warnf(format string, args ...interface{})
- func (e *Entry) Warnln(args ...interface{})
- func (e *Entry) WithError(err error) *Entry
- func (e *Entry) WithField(key string, value interface{}) *Entry
- func (e *Entry) WithFields(fields logrus.Fields) *Entry
- func (e *Entry) Wrap(err error, msg string, args ...interface{}) error
- func (e *Entry) WrapFinal(err *error, msg string, args ...interface{})
- type Fields
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func AutoStartProfileServer ¶ added in v0.1.26
func AutoStartProfileServer(port uint16)
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 Indent ¶ added in v0.1.17
func Indent(arg interface{}) string
Indent transforms the structure into json by using MarshalIndent
func MustFatal ¶ added in v0.1.12
func MustFatal(err error)
MustFatal Checks if an error occured, otherwise stop the program
func PanicHandler ¶ added in v0.1.22
func PanicHandler()
Wrap an error, this is useful in combination with Should and Must
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
func ShouldWrap ¶ added in v0.1.26
Should Checks if an error occured, otherwise prints it as error, returns true if error is not nil
func TimerEnd ¶ added in v0.1.26
Print time since the last call to the Time function with the same name
Types ¶
type Entry ¶ added in v0.1.22
func GetLoggerForPrefix ¶
GetLoggerForPrefix gets the logger for a certain prefix if it has been configured
func WithFields ¶
func (*Entry) MustFatal ¶ added in v0.1.22
MustFatal Checks if an error occured, otherwise stop the program
func (*Entry) PanicHandler ¶ added in v0.1.23
func (e *Entry) PanicHandler()
func (*Entry) Should ¶ added in v0.1.22
Should Checks if an error occured, otherwise prints it as error, returns true if error is not nil
func (*Entry) ShouldWarn ¶ added in v0.1.22
ShouldWarn Checks if an error occured, otherwise prints it as warning, returns true if error is not nil
func (*Entry) ShouldWrap ¶ added in v0.1.26
ShouldWrap Checks if an error occured, otherwise prints it as error, returns true if error is not nil
func (*Entry) Warn ¶ added in v0.1.22
func (e *Entry) Warn(args ...interface{})
Warn prints a warning...