Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NameFieldName = "name" HostnameFieldName = "hostname" ClientIPFieldName = "client_ip" UserAgentFieldName = "user_agent" TimestampFieldName = zerolog.TimestampFieldName DurationFieldName = "elapsed" MethodFieldName = "method" PathFieldName = "path" PayloadFieldName = "payload" RefererFieldName = "referer" DataLengthFieldName = "data_length" BodyFieldName = "body" )
Functions ¶
func LoggerWithOptions ¶
func LoggerWithOptions(opt *Options) gin.HandlerFunc
LoggerWithOptions is a gin middleware which use zerolog
Types ¶
Click to show internal directories.
Click to hide internal directories.