Closed vlaborie closed 3 years ago
You can add arbitrary additional fields. Example for log4j2:
<KeyValuePair key="service.version" value="1.2.3"/>
It is also possible with jul and log4j ?
Currently, that's not possible. Would you be interested in contributing support for it?
I would, but i am not a Java developer.
Have you any plan to implement this in the near future ?
I see what I can do but I can't make promises.
As a workaround, could you just set all the information into service.name
?
Thank's for adding additional fields to log4j and JUL.
I tested it and it work well for log4j but doesn't work for JUL.
I tried to add co.elastic.logging.jul.EcsFormatter.additionalFields=key1=value1,key2=value2 in my Tomcat logging.properties like specified in documentation but nothing happened
Thanks for reporting. Not sure why you deleted that comment. This should be fixed by #118
Ecs-logging-java permit to define the service.name but no others service fields.
Can you add params for service.type and service.version ?