Skip to content

Header value doesn't update dynamically. #40

Description

@jaanreinok

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}" />
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions