utils

package
v0.0.0-...-095c751 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL