We can have log4j2 at bundle level and pax maps it to log4j at karaf level that i have implemented. But i doubt if log4j2 appender will work if we configure it in org.ops4j.pax.logging.cfg.
Thanks, Honey Goyal On Feb 19, 2015 8:34 PM, "yogu13 [via Karaf]" < [email protected]> wrote: > Valid point! Not sure log4j2 has this on its list as well. > > Regards, > -Yogesh > > On Thursday, February 19, 2015, Guillaume Nodet-2 [via Karaf] <[hidden > email] <http:///user/SendEmail.jtp?type=node&node=4038637&i=0>> wrote: > >> The main problem I see is that log4jv2 support is still not on par. The >> main problem is that the configuration does not support properties file, >> so >> that a bunch of things like going through configadmin using file install, >> log:set commands, etc... would be broken. >> >> 2015-02-19 15:33 GMT+01:00 yogu13 <[hidden email] >> <http:///user/SendEmail.jtp?type=node&node=4038635&i=0>>: >> >> > Hello Achim, >> > >> > Karaf supports / includes pax logging.. Pax logging has implemented the >> > support for log4j2..IMO if karaf includes pax logging then it should be >> > including the support for all implemented logging flavours and let user >> > decide which implementation to use and not be selective. >> > >> > Regards, >> > -Yogesh >> > >> > On Thursday, February 19, 2015, Achim Nierbeck [via Karaf] < >> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4038635&i=1>> >> wrote: >> > >> > > Hi, >> > > >> > > I can't remember that we decided to switch to log4j2 as service impl >> for >> > > the karaf logging so this is quite intentional. >> > > If you rather have another logging available you'll need to change >> that >> > in >> > > your custom distribution. >> > > >> > > regards, Achim >> > > >> > > >> > > 2015-02-19 14:01 GMT+01:00 yogu13 <[hidden email] >> > > <http:///user/SendEmail.jtp?type=node&node=4038632&i=0>>: >> > > >> > > > JB, >> > > > >> > > > Looks like karaf didnt include the pax-logging-log4j2 feature as >> part >> > of >> > > > their asslembly. As part of the feature file I only see >> > > > >> > > > >> > > > <bundle start="true" >> > > > >> > > > >> > > >> > >> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle> >> >> > > >> > > > <bundle start="true" >> > > > >> > > > >> > > >> > >> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle> >> >> > > >> > > > >> > > > log4j2 and pax-logging-log4j2 bundles are missing. >> > > > >> > > > file being referred -> [karaf.git] -> assemblies -> features -> >> > > framework >> > > > -> src -> main -> feature -> feature.xml >> > > > >> > > > Do we need to raise a JIRA for this? >> > > > >> > > > Let me know.. >> > > > >> > > > Regards, >> > > > -Yogesh >> > > > >> > > > >> > > > >> > > > -- >> > > > View this message in context: >> > > > >> > > >> > >> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html >> > > > Sent from the Karaf - Dev 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 >> > > >> > > >> > > ------------------------------ >> > > If you reply to this email, your message will be added to the >> discussion >> > > below: >> > > >> > > >> > >> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038632.html >> > > To unsubscribe from Were you guys still interested in adopting >> Log4j2 >> > for >> > > your logging system?, click here >> > > < >> > > >> > > . >> > > NAML >> > > < >> > >> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml >> > > >> > > >> > >> > >> > >> > >> > -- >> > View this message in context: >> > >> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038634.html >> > Sent from the Karaf - Dev mailing list archive at Nabble.com. >> > >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> >> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038635.html >> To unsubscribe from Were you guys still interested in adopting Log4j2 >> for your logging system?, click here. >> NAML >> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038637.html > To unsubscribe from Were you guys still interested in adopting Log4j2 for > your logging system?, click here > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4033296&code=ZXIuaG9uZXkyMDEyQGdtYWlsLmNvbXw0MDMzMjk2fC0xOTIzNzA4OTQ=> > . > NAML > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038639.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
