Documentation ¶
Index ¶
- func CheckError(err error) bool
- func CheckFatal(err error) bool
- func CheckRedisError(err error) bool
- func Debug(message string, fields ...zap.Field)
- func Error(message string, fields ...zap.Field)
- func Fatal(message string, fields ...zap.Field)
- func GetLogger() *zap.Logger
- func Info(message string, fields ...zap.Field)
- func InitLogger()
- func Warn(message string, fields ...zap.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRedisError ¶
CheckRedisError this doesn't play well with zap
func InitLogger ¶
func InitLogger()
InitLogger initializes a thread-safe singleton logger This would be called from a main method when the application starts up This function would ideally, take zap configuration, but is left out in favor of simplicity using the example logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.