Documentation
¶
Overview ¶
Package log is copied from gorm.Logger and add traceId
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRecordNotFound = errors.New("record not found")
ErrRecordNotFound record not found error
View Source
var Logger = logrus.New()
Functions ¶
func FormatTraceIdIfExist ¶
func MethodColor ¶
func NewGormLogger ¶
func NewGormLogger(level LogLevel) gormLogger.Interface
NewGormLogger initialize gormTraceLogger
func StatusCodeColor ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.