Skip to content

Releases

Release of v1.2.3

Choose a tag to compare

@salleh salleh released this 08 Sep 09:20
01b0b6d

Introduce IncludeHeader as new ZapLoggerConfig item.

The IncludeHeader will default to nil. To include specific header into the log item, pass a string slice that contains the list of header key:
e.g:

echozap.ZapLoggerConfig{ IncludeHeader: []string{ echo.HeaderXRequestId, "My-Custom-Header-Key", } }

For consistency purpose, ALL the header key will be converted to lowercase before registered as the log field key (as getting the header from the http context will assume a case insensitive canonical form).

POTENTIAL UPGRADE BREAKING CHANGES
Prior and including version 1.1.3 of #brpaz#3, echozap will automatically add a log field "request-id" to represent "X-Request-Id" header regardless if it is being sent or not.

With this release, it is not automatically added anymore. The log field key will not be changed and it will maintain the original header key.

Release 1.0.0

Choose a tag to compare

@salleh salleh released this 08 Sep 04:48
7dbc694

Initial release.

Bare fork from original brpaz/echozap and Unity-Technologies/echozap.