Documentation
¶
Index ¶
- Constants
- func GetPanicTrace(err interface{}) string
- func JsonLogger() *logrus.Logger
- func JsonLoggerWithRequestID(ctx context.Context) *logrus.Entry
- func LogLevel(level string) logrus.Level
- func MiddlewareLogSkipper() echo.MiddlewareFunc
- func SetLogLevel(level string)
- func WithContext(ctx context.Context) *logrus.Logger
Constants ¶
View Source
const ( // Call stack dump size StackDumpSize = 1024 * 4 DefaultLogLevel = "debug" )
Variables ¶
This section is empty.
Functions ¶
func GetPanicTrace ¶
func GetPanicTrace(err interface{}) string
Create panic message by combining current goroutine's call stack with error message
func JsonLogger ¶
func MiddlewareLogSkipper ¶
func MiddlewareLogSkipper() echo.MiddlewareFunc
func SetLogLevel ¶
func SetLogLevel(level string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.