logger

package
v0.0.0-...-0a492bd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 JsonLogger() *logrus.Logger

func JsonLoggerWithRequestID

func JsonLoggerWithRequestID(ctx context.Context) *logrus.Entry

func LogLevel

func LogLevel(level string) logrus.Level

func MiddlewareLogSkipper

func MiddlewareLogSkipper() echo.MiddlewareFunc

func SetLogLevel

func SetLogLevel(level string)

func WithContext

func WithContext(ctx context.Context) *logrus.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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