Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultCustomFieldsKey is the key for custom fields in the context. DefaultCustomFieldsKey = "_echozap_custom_fields_" // DefaultCustomLoggerKey is the key for custom logger in the context. DefaultCustomLoggerKey = "_echozap_custom_logger_" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Logger is the zap logger to use Logger *zap.Logger // CustomFieldsKey is the key to use for custom fields (default: echozap.DefaultCustomFieldsPrefix) CustomFieldsKey string // CustomLoggerKey is the key to use for the custom logger (default: echozap.DefaultCustomLoggerKey) CustomLoggerKey string }
Click to show internal directories.
Click to hide internal directories.