You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by samspy <sa...@gmail.com> on 2011/10/14 12:31:20 UTC

Re: Running Karaf without PAX Logging

Is there any ongoing effort for a Logback backend to Karaf?

I can only find rather old messages in this regard.

Thanks,
Sam

--
View this message in context: http://karaf.922171.n3.nabble.com/Running-Karaf-without-PAX-Logging-tp3177504p3421252.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Running Karaf without PAX Logging

Posted by Achim Nierbeck <bc...@googlemail.com>.
To my understanding there is no such effort,
but you are invited to provide such a backend to pax logging :)

regards, Achim

2011/10/14 samspy <sa...@gmail.com>

> Is there any ongoing effort for a Logback backend to Karaf?
>
> I can only find rather old messages in this regard.
>
> Thanks,
> Sam
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Running-Karaf-without-PAX-Logging-tp3177504p3421252.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
--
*Achim Nierbeck*


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/>

Re: Running Karaf without PAX Logging

Posted by samspy <sa...@gmail.com>.
The logback site has a page dedicated to reasons for switching: 

http://logback.qos.ch/reasonsToSwitch.html

An argument for logback in our project is performance. Since audit logging
requirements for us are very high, logging enters into that calculation.
Considering that this is the original developer of log4j (he is the
principal author on both projects) claiming significant performance
improvements for logback over log4j, I think the statement carries some
weight.


With regards to configuration, logback can be configured programmatically:

http://mailman.qos.ch/pipermail/logback-dev/2009-February/003785.html
http://mailman.qos.ch/pipermail/logback-dev/2009-February/003785.html 
http://logback.qos.ch/manual/joran.html
http://logback.qos.ch/manual/joran.html 
http://logback.qos.ch/joran.html http://logback.qos.ch/joran.html 

As to implementing this ourselves, I am afraid our project is under too
strict time constraints for this to be possible (also considering that we
are just getting to know karaf). Except if, given the programmatic
configuration possibilities, this would in fact be quite straightforward?

Thanks,
Sam



--
View this message in context: http://karaf.922171.n3.nabble.com/Running-Karaf-without-PAX-Logging-tp3177504p3421434.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Running Karaf without PAX Logging

Posted by Achim Nierbeck <bc...@googlemail.com>.
After I checked back with the original Author of this appender [1] I have an
OK for it :)
So I'll try to add this appender[2] as soon as possible to pax-logging.

regards, Achim

[1] - http://www.ralfhaug.de/zip-n-roll-mit-log4j/
[2] - https://github.com/ANierbeck/CustomAppender

2011/10/14 Guillaume Nodet <gn...@gmail.com>

> Maybe we should include your appender by default in pax-logging ?  It
> sounds quite useful to me.
>
> On Fri, Oct 14, 2011 at 12:51, Achim Nierbeck <bc...@googlemail.com>wrote:
>
>> Well, the only thing i would like to have would be the appender that
>> already does the zipping of roled over log files.
>> But this can be easily done with a custom appender and I wrote a blog [1]
>> about it how to attach it to karaf, so no
>> real need to actually get it into pax-logging ;)
>>
>> regards, Achim
>>
>> [1] - http://nierbeck.de/cgi-bin/weblog_basic/index.php?p=201
>>
>> 2011/10/14 Guillaume Nodet <gn...@gmail.com>
>>
>>> The main problem I see with logback is that there's no properties based
>>> configuration for logback.
>>> That's a real problem imho because we would not be able to leverage the
>>> OSGi ConfigAdmin which is a key point in order to have a clean interaction
>>> point with all configurations.   If you are aware of anything that would
>>> look like a properties based configurator for logback, things may changed.
>>>
>>> That's said, I've still haven't heard any real reasons to swtich to
>>> logback.  The version of log4j that is embedded in pax-logging has been
>>> enhanced to fix some over synchronization problem (leading to performance
>>> issues) and also to add the features that were needed (like a split
>>> appender, etc...).
>>>
>>> What need do you have for logback ?
>>>
>>>
>>> On Fri, Oct 14, 2011 at 12:31, samspy <sa...@gmail.com> wrote:
>>>
>>>> Is there any ongoing effort for a Logback backend to Karaf?
>>>>
>>>> I can only find rather old messages in this regard.
>>>>
>>>> Thanks,
>>>> Sam
>>>>
>>>> --
>>>> View this message in context:
>>>> http://karaf.922171.n3.nabble.com/Running-Karaf-without-PAX-Logging-tp3177504p3421252.html
>>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>> --
>>> ------------------------
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> Open Source SOA
>>> http://fusesource.com
>>>
>>>
>>
>>
>> --
>> --
>> *Achim Nierbeck*
>>
>>
>> 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/>
>>
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
>


-- 
--
*Achim Nierbeck*


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/>

Re: Running Karaf without PAX Logging

Posted by Guillaume Nodet <gn...@gmail.com>.
Maybe we should include your appender by default in pax-logging ?  It sounds
quite useful to me.

On Fri, Oct 14, 2011 at 12:51, Achim Nierbeck <bc...@googlemail.com>wrote:

> Well, the only thing i would like to have would be the appender that
> already does the zipping of roled over log files.
> But this can be easily done with a custom appender and I wrote a blog [1]
> about it how to attach it to karaf, so no
> real need to actually get it into pax-logging ;)
>
> regards, Achim
>
> [1] - http://nierbeck.de/cgi-bin/weblog_basic/index.php?p=201
>
> 2011/10/14 Guillaume Nodet <gn...@gmail.com>
>
>> The main problem I see with logback is that there's no properties based
>> configuration for logback.
>> That's a real problem imho because we would not be able to leverage the
>> OSGi ConfigAdmin which is a key point in order to have a clean interaction
>> point with all configurations.   If you are aware of anything that would
>> look like a properties based configurator for logback, things may changed.
>>
>> That's said, I've still haven't heard any real reasons to swtich to
>> logback.  The version of log4j that is embedded in pax-logging has been
>> enhanced to fix some over synchronization problem (leading to performance
>> issues) and also to add the features that were needed (like a split
>> appender, etc...).
>>
>> What need do you have for logback ?
>>
>>
>> On Fri, Oct 14, 2011 at 12:31, samspy <sa...@gmail.com> wrote:
>>
>>> Is there any ongoing effort for a Logback backend to Karaf?
>>>
>>> I can only find rather old messages in this regard.
>>>
>>> Thanks,
>>> Sam
>>>
>>> --
>>> View this message in context:
>>> http://karaf.922171.n3.nabble.com/Running-Karaf-without-PAX-Logging-tp3177504p3421252.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> ------------------------
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>>
>
>
> --
> --
> *Achim Nierbeck*
>
>
> 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/>
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: Running Karaf without PAX Logging

Posted by Achim Nierbeck <bc...@googlemail.com>.
Well, the only thing i would like to have would be the appender that already
does the zipping of roled over log files.
But this can be easily done with a custom appender and I wrote a blog [1]
about it how to attach it to karaf, so no
real need to actually get it into pax-logging ;)

regards, Achim

[1] - http://nierbeck.de/cgi-bin/weblog_basic/index.php?p=201

2011/10/14 Guillaume Nodet <gn...@gmail.com>

> The main problem I see with logback is that there's no properties based
> configuration for logback.
> That's a real problem imho because we would not be able to leverage the
> OSGi ConfigAdmin which is a key point in order to have a clean interaction
> point with all configurations.   If you are aware of anything that would
> look like a properties based configurator for logback, things may changed.
>
> That's said, I've still haven't heard any real reasons to swtich to
> logback.  The version of log4j that is embedded in pax-logging has been
> enhanced to fix some over synchronization problem (leading to performance
> issues) and also to add the features that were needed (like a split
> appender, etc...).
>
> What need do you have for logback ?
>
>
> On Fri, Oct 14, 2011 at 12:31, samspy <sa...@gmail.com> wrote:
>
>> Is there any ongoing effort for a Logback backend to Karaf?
>>
>> I can only find rather old messages in this regard.
>>
>> Thanks,
>> Sam
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Running-Karaf-without-PAX-Logging-tp3177504p3421252.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
>


-- 
--
*Achim Nierbeck*


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/>

Re: Running Karaf without PAX Logging

Posted by Guillaume Nodet <gn...@gmail.com>.
The main problem I see with logback is that there's no properties based
configuration for logback.
That's a real problem imho because we would not be able to leverage the OSGi
ConfigAdmin which is a key point in order to have a clean interaction point
with all configurations.   If you are aware of anything that would look like
a properties based configurator for logback, things may changed.

That's said, I've still haven't heard any real reasons to swtich to logback.
 The version of log4j that is embedded in pax-logging has been enhanced to
fix some over synchronization problem (leading to performance issues) and
also to add the features that were needed (like a split appender, etc...).

What need do you have for logback ?

On Fri, Oct 14, 2011 at 12:31, samspy <sa...@gmail.com> wrote:

> Is there any ongoing effort for a Logback backend to Karaf?
>
> I can only find rather old messages in this regard.
>
> Thanks,
> Sam
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Running-Karaf-without-PAX-Logging-tp3177504p3421252.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com