Documentation ¶
Index ¶
- func Debug(msg string)
- func Debugf(msg string, args ...interface{})
- func Error(trace string, err error)
- func Fatal(args ...interface{})
- func Fatalf(msg string, args ...interface{})
- func GenerateUUID() string
- func GetRequestID(requestIDParams *string) string
- func Info(msg string)
- func Infof(msg string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(msg string, args ...interface{})
- func Printf(msg string, args ...interface{})
- func Println(args ...interface{})
- func StripSpecialChars(s string) string
- func Trace() (line string)
- func Warn(msg string)
- func Warnf(msg string, args ...interface{})
- func WithError(err error) *logrus.Entry
- func WithField(key string, value interface{}) *logrus.Entry
- func WithFields(fields logrus.Fields) *logrus.Entry
- type UTCFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUUID ¶
func GenerateUUID() string
GenerateUUID is function to generate our own uuid if the google uuid throws error
func GetRequestID ¶
GetRequestID is function to generate uuid as request id if client doesn't pass X-REQUEST-ID request header
func StripSpecialChars ¶
StripSpecialChars strips newlines and tabs from a string
func Trace ¶
func Trace() (line string)
Trace returns the source code line and function name (of the calling function)
Types ¶
Click to show internal directories.
Click to hide internal directories.