Skip to content

<pattern>: do not include property when value is empty/null #201

Closed
@brenuart

Description

@brenuart

Suppose the following pattern:

<pattern>
{
   "trace": "%mdc{traceId}"
}
</pattern>

Is there a way to omit the trace property when there is no such traceId MDC key?
Something like what #nullNA{...} does for Access events...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions