The header value doesn't update. Layout value gets updated.
This would be useful in case of supplying metadata via header. The http target has BatchAsJsonArray="true" wrapped in BufferingWrapper.
custom layout render.
LayoutRenderer.Register("unixutcms", (logEvent) => DateTimeOffset.UtcNow.ToUnixTimeMilliseconds());
<header name="ClientUtcNowMs" value="${unixutcms}"/>
<layout type="JsonLayout" >
<attribute name="ts" layout="${unixutcms}" />
...
The header value doesn't update. Layout value gets updated.
This would be useful in case of supplying metadata via header. The http target has BatchAsJsonArray="true" wrapped in BufferingWrapper.
custom layout render.
LayoutRenderer.Register("unixutcms", (logEvent) => DateTimeOffset.UtcNow.ToUnixTimeMilliseconds());<header name="ClientUtcNowMs" value="${unixutcms}"/><layout type="JsonLayout" ><attribute name="ts" layout="${unixutcms}" />...