Documentation
¶
Index ¶
Constants ¶
View Source
const (
TimestampFormat = "2006/01/02 - 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func NewHandlerLogger ¶
func NewHandlerLogger() *handlerLogger
func RestLogger ¶
func RestLogger(opts ...HandlerLogOption) gin.HandlerFunc
Types ¶
type HandlerLogOption ¶
type HandlerLogOption func(conf *handlerLogConfig)
func WithGinDebug ¶
func WithGinDebug(level logrus.Level) HandlerLogOption
Click to show internal directories.
Click to hide internal directories.