JsonLayout maximum message length?

Viewed 163

Is there a way to limit the characters of the message value in JsonLayout of log4j2? Current configuration is something like this

<Console name="CONSOLE_APPENDER" target="SYSTEM_OUT">
        <BurstFilter level="INFO" rate="2" maxBurst="10"/>
        <JsonLayout compact="false" eventEol="false" stacktraceAsString="true">
            <KeyValuePair key="timestamp" value="$${date:yyyy-MM-dd'T'HH:mm:ss.SSSZ}" />
            <KeyValuePair key="BuildNumber" value="$${ctx:BuildNumber:-}"/>
        </JsonLayout>
    </Console>
0 Answers
Related