Documentation ¶
Index ¶
- func DefaultWithFields(logDetails LogDetails) *logrus.Entry
- func Error(errLog LogDetails)
- func Errorf(format string, a ...interface{})
- func Fatal(logDetials LogDetails)
- func Fatalf(format string, a ...interface{})
- func GenerateUUID() string
- func GetRequestID(requestIDParams *string) string
- func GetServiceRequestID() string
- func Info(logDetails LogDetails)
- func Infof(format string, a ...interface{})
- func Trace() (line string)
- type LogDetails
- type UTCFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultWithFields ¶
func DefaultWithFields(logDetails LogDetails) *logrus.Entry
DefaultWithFields adds default fields to the logger
func Errorf ¶
func Errorf(format string, a ...interface{})
Errorf allows you to log formatted strings.
func Fatalf ¶
func Fatalf(format string, a ...interface{})
Fatalf allows you to log formatted strings.
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
Types ¶
type LogDetails ¶
LogDetails structure for all logrus error and warnings
Click to show internal directories.
Click to hide internal directories.