Wildfly json-formatter class name metadata

Discussão em 'StackOverflow' iniciado por Stack, Julho 2, 2021.

  1. Stack

    Stack Membro Participativo

    Is it possible to configure a non-static value for the metadata field in the wildly json-formatter? I didn't find anything about it in the wildfly documentation- it only has a simple static field example (meta-data=[@version=1])

    For example, I would like to have a field "simpleClassName" - The class of the code calling the log method.

    I also tried to use a similar syntax to pattern-formatter(example below) but it doesn't work

    <formatter name="JSON">
    <json-formatter>
    <meta-data>
    <property name="simpleClassName" value="%c{1}"/>
    </meta-data>
    </json-formatter>
    </formatter>

    Continue reading...

Compartilhe esta Página