Documentation ¶
Overview ¶
Package log is bp-go-lib's log middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogicLoggerBuilder ¶ added in v0.0.2
func NewLogicLoggerBuilder() (lg *logicLoggerBuilder)
NewLogicLoggerBuilder generate a logicLoggerBuilder.
Types ¶
type FieldMap ¶
type FieldMap map[fieldKey]string
FieldMap allows customization of the key names for default fields.
type LoggerBuilder ¶ added in v0.1.0
type LogicLoggerBuilder ¶ added in v0.1.0
type LogicLoggerFormatter ¶
type LogicLoggerFormatter struct { // TimestampFormat sets the format used for marshaling timestamps. TimestampFormat string }
LogicLoggerFormatter formats logs into parsable json
Click to show internal directories.
Click to hide internal directories.