Documentation ¶
Index ¶
- func GetFunctionName() string
- func GetLoggerFromContext(ctx context.Context) *zap.SugaredLogger
- func GetOnlyFunctionName() string
- func LogError(logger *zap.SugaredLogger, msg interface{})
- func LogHandlerError(logger *zap.SugaredLogger, msg interface{}, statusCode int)
- func LogHandlerInfo(logger *zap.SugaredLogger, msg string, statusCode int)
- func LogInfo(logger *zap.SugaredLogger, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunctionName ¶
func GetFunctionName() string
func GetLoggerFromContext ¶
func GetLoggerFromContext(ctx context.Context) *zap.SugaredLogger
func GetOnlyFunctionName ¶
func GetOnlyFunctionName() string
func LogError ¶
func LogError(logger *zap.SugaredLogger, msg interface{})
func LogHandlerError ¶
func LogHandlerError(logger *zap.SugaredLogger, msg interface{}, statusCode int)
func LogHandlerInfo ¶
func LogHandlerInfo(logger *zap.SugaredLogger, msg string, statusCode int)
func LogInfo ¶
func LogInfo(logger *zap.SugaredLogger, msg string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.