You may also export your JSON implementation as a PaxAppender service with the 
“org.ops4j.pax.logging.appender.name” property containing the desired 
identifier which will be used in the Log4J conf file.

JP

De : Achim Nierbeck [mailto:[email protected]]
Envoyé : lundi 29 février 2016 08:48
À : [email protected]
Objet : Re: Karaf logging in JSON format

Depends on if you have an appender that can do so.
If you have such an appender, make sure to attach it to pax-logging.
One known to work solution is to have a fragment bundle which attaches to the 
pax-logging service bundle (if it's a log4j 1.x bundle)

regards, Achim


2016-02-29 6:46 GMT+01:00 D 
<[email protected]<mailto:[email protected]>>:
Is there a way we can make karaf log in JSON format?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-logging-in-JSON-format-tp4045607.html
Sent from the Karaf - User mailing list archive at Nabble.com.



--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & 
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to