Re: Logback and Apache Karaf
Isn't it though a separate bundle (pax-logging-service vs. pax-logging-logback)? From looking at the code it looks like whilst it uses the same pid as the pax-logging-service, pax-logging-logback works a little differently (the org.ops4j.pax.logging configuration contains a pointer to the real logback configuration). I can do all this myself (download pax-logging-logback to the embedded repository, change startup properties to use pax-logging-logback instead of pax-logging-service, change the default org.ops4j.pax.logging.properties file and add a logback.xml). It would be nice though if karaf could make it easier (like it does with the equinox/felix switch). I am actually surprised that no-one else asked for this. Is logback not used much? thanks, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183p4028195.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Logback and Apache Karaf
I suppose people find the enhanced log4j version sufficient. A bunch of sutff has been added to the basic log4j embedded in paxlogging, such as MDCSiftingAPpender, ZipROllingFileAppender, MDCMatchFilter and missing property based configuration for hierachical bits. On Thu, Mar 14, 2013 at 4:10 PM, Gareth gareth.o.coll...@gmail.com wrote: Isn't it though a separate bundle (pax-logging-service vs. pax-logging-logback)? From looking at the code it looks like whilst it uses the same pid as the pax-logging-service, pax-logging-logback works a little differently (the org.ops4j.pax.logging configuration contains a pointer to the real logback configuration). I can do all this myself (download pax-logging-logback to the embedded repository, change startup properties to use pax-logging-logback instead of pax-logging-service, change the default org.ops4j.pax.logging.properties file and add a logback.xml). It would be nice though if karaf could make it easier (like it does with the equinox/felix switch). I am actually surprised that no-one else asked for this. Is logback not used much? thanks, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183p4028195.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Re: Logback and Apache Karaf
Another drawback of switching to logback would be that the log:set command which allow changing the logger levels would not work anymore. On Thu, Mar 14, 2013 at 9:03 AM, Achim Nierbeck bcanh...@googlemail.comwrote: No not really, cause right now we rather use the ConfigurationAdmin Service way of configuring the logger. But I think you're able to configure it in the org.ops4j.pax.logging.cfg file to use a logback config. regards, Achim 2013/3/14 Gareth gareth.o.coll...@gmail.com Hi, Any plans to make it easy to switch the Pax Logging (now 1.7.0) now bundled with Karaf to use Logback instead? e.g. like having a: karaf.loggingbackend = log4j/logback I ask because I was interested in using logback specific features (e.g. log4j 1.2 does not support Markers). thanks in advance, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter Project Lead blog http://notizblog.nierbeck.de/ -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Re: Logback and Apache Karaf
FYI, I tried the pax-logging-logback library (not sure if it was 1.7.0 or 1.7.1 or something), but it went crazy when I installed it. Literally just about every bundle version of logback that was ever made ended up installed and activated there were some other weird things. I ended up deciding just to stick with what's there by default though I would like to use logback somehow. On Thu, Mar 14, 2013 at 11:16 AM, Guillaume Nodet gno...@gmail.com wrote: Another drawback of switching to logback would be that the log:set command which allow changing the logger levels would not work anymore. On Thu, Mar 14, 2013 at 9:03 AM, Achim Nierbeck bcanh...@googlemail.comwrote: No not really, cause right now we rather use the ConfigurationAdmin Service way of configuring the logger. But I think you're able to configure it in the org.ops4j.pax.logging.cfg file to use a logback config. regards, Achim 2013/3/14 Gareth gareth.o.coll...@gmail.com Hi, Any plans to make it easy to switch the Pax Logging (now 1.7.0) now bundled with Karaf to use Logback instead? e.g. like having a: karaf.loggingbackend = log4j/logback I ask because I was interested in using logback specific features (e.g. log4j 1.2 does not support Markers). thanks in advance, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter Project Lead blog http://notizblog.nierbeck.de/ -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Re: Logback and Apache Karaf
Hi Ryan, I am curious - How did you install it? thanks, Gareth On Thu, Mar 14, 2013 at 6:26 PM, Ryan Moquin [via Karaf] ml-node+s922171n4028206...@n3.nabble.com wrote: FYI, I tried the pax-logging-logback library (not sure if it was 1.7.0 or 1.7.1 or something), but it went crazy when I installed it. Literally just about every bundle version of logback that was ever made ended up installed and activated there were some other weird things. I ended up deciding just to stick with what's there by default though I would like to use logback somehow. On Thu, Mar 14, 2013 at 11:16 AM, Guillaume Nodet [hidden email] wrote: Another drawback of switching to logback would be that the log:set command which allow changing the logger levels would not work anymore. On Thu, Mar 14, 2013 at 9:03 AM, Achim Nierbeck [hidden email] wrote: No not really, cause right now we rather use the ConfigurationAdmin Service way of configuring the logger. But I think you're able to configure it in the org.ops4j.pax.logging.cfg file to use a logback config. regards, Achim 2013/3/14 Gareth [hidden email] Hi, Any plans to make it easy to switch the Pax Logging (now 1.7.0) now bundled with Karaf to use Logback instead? e.g. like having a: karaf.loggingbackend = log4j/logback I ask because I was interested in using logback specific features (e.g. log4j 1.2 does not support Markers). thanks in advance, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter Project Lead blog http://notizblog.nierbeck.de/ -- Guillaume Nodet Red Hat, Open Source Integration Email: [hidden email] Web: http://fusesource.com Blog: http://gnodet.blogspot.com/ If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183p4028206.html To unsubscribe from Logback and Apache Karaf, click here. NAML -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183p4028207.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Logback and Apache Karaf
Hm let me remember. I think I included it as a maven dependency on my bundles and it was installed from the generated feature file. It was a few months back so I forget all the details. I wasn't really sure what the underlying issue was and if maybe it was a first version of it and had a few quirks to work out. Either way, it was very weird what happened. I think all the versions of logback might have showed up in the features file as well. I can't remember though, it might have been a karaf-maven-plugin issue as well. I will have to give it another try. Ryan On Thu, Mar 14, 2013 at 6:29 PM, Gareth gareth.o.coll...@gmail.com wrote: Hi Ryan, I am curious - How did you install it? thanks, Gareth On Thu, Mar 14, 2013 at 6:26 PM, Ryan Moquin [via Karaf] ml-node+s922171n4028206...@n3.nabble.com wrote: FYI, I tried the pax-logging-logback library (not sure if it was 1.7.0 or 1.7.1 or something), but it went crazy when I installed it. Literally just about every bundle version of logback that was ever made ended up installed and activated there were some other weird things. I ended up deciding just to stick with what's there by default though I would like to use logback somehow. On Thu, Mar 14, 2013 at 11:16 AM, Guillaume Nodet [hidden email] wrote: Another drawback of switching to logback would be that the log:set command which allow changing the logger levels would not work anymore. On Thu, Mar 14, 2013 at 9:03 AM, Achim Nierbeck [hidden email] wrote: No not really, cause right now we rather use the ConfigurationAdmin Service way of configuring the logger. But I think you're able to configure it in the org.ops4j.pax.logging.cfg file to use a logback config. regards, Achim 2013/3/14 Gareth [hidden email] Hi, Any plans to make it easy to switch the Pax Logging (now 1.7.0) now bundled with Karaf to use Logback instead? e.g. like having a: karaf.loggingbackend = log4j/logback I ask because I was interested in using logback specific features (e.g. log4j 1.2 does not support Markers). thanks in advance, Gareth -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter Project Lead blog http://notizblog.nierbeck.de/ -- Guillaume Nodet Red Hat, Open Source Integration Email: [hidden email] Web: http://fusesource.com Blog: http://gnodet.blogspot.com/ If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183p4028206.html To unsubscribe from Logback and Apache Karaf, click here. NAML -- View this message in context: http://karaf.922171.n3.nabble.com/Logback-and-Apache-Karaf-tp4028183p4028207.html Sent from the Karaf - User mailing list archive at Nabble.com.