I meant that:
1. If you add key=value in
etc/org.apache.karaf.decanter.collector.log.cfg file, it will be added
to the event. So you can provide those custom properties using
ConfigAdmin (on the org.apache.karaf.decanter.collector.log pid), but it
will trigger a restart of the collector as the configuration will change.
2. IMHO, MDC for dynamic property is probably the best way to go.
Regards
JB
On 09/30/2016 09:48 AM, 414n wrote:
Hi JB,
thanks for the reply.
I'm not sure I understood correctly, but do you mean that the code I posted
would be good for setting the custom property I'd like to set? Because, for
what I saw, it did nothing and Decanter never added the custom property to
the collected logs...
--
View this message in context:
http://karaf.922171.n3.nabble.com/Decanter-log-appender-properties-tp4048206p4048210.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com