Documentation ¶
Index ¶
- func CheckError(err error) bool
- func CheckErrorWithMessage(err error, msg string, args ...interface{}) bool
- func Debug(msg string)
- func DebugResponse(response *http.Response) string
- func Debugf(msg string, args ...interface{})
- func Error(msg string)
- func Errorf(msg string, args ...interface{})
- func Fatal(msg string)
- func Fatalf(msg string, args ...interface{})
- func Info(msg string)
- func Infof(msg string, args ...interface{})
- func Init(environment string)
- func InitLogToFile()
- func InitLogToStdout()
- func InitLogToStdoutDebug()
- func LumberJackLogger(filePath string, maxSize int, maxBackups int, maxAge int) *lumberjack.Logger
- func Panic(msg string)
- func Panicf(msg string, args ...interface{})
- func Warn(msg string)
- func Warnf(msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
CheckError check error and return true if error is nil and return false if error is not nil.
func CheckErrorWithMessage ¶
CheckErrorWithMessage check error with message and log messages with stack. And then return true if error is nil and return false if error is not nil.
func DebugResponse ¶
DebugResponse : log response body data for debugging
func Debugf ¶
func Debugf(msg string, args ...interface{})
Debugf logs a formatted message with debug log level.
func Errorf ¶
func Errorf(msg string, args ...interface{})
Errorf logs a formatted message with error log level.
func Fatalf ¶
func Fatalf(msg string, args ...interface{})
Fatalf logs a formatted message with fatal log level.
func Infof ¶
func Infof(msg string, args ...interface{})
Infof logs a formatted message with info log level.
func InitLogToStdoutDebug ¶
func InitLogToStdoutDebug()
InitLogToStdoutDebug : set logrus to debug param
func LumberJackLogger ¶
LumberJackLogger : Initialize logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.