You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Charles Moulliard <ch...@gmail.com> on 2015/09/20 17:51:51 UTC

Decanter & Pax Appender

Hi,

The Decanter Pax Logging Appender is registered as a OSGI Service when the
collector bundle is called (
https://github.com/apache/karaf-decanter/blob/master/collector/log/src/main/java/org/apache/karaf/decanter/collector/log/Activator.java#L45
)

As this Decanter Collector Log bundle is not part of the startup.properties
script of Karaf but deployed as a bundle using features, how can we be sure
that the bundle will be started before that Karaf start to call the log
appender of Pax and that we will be able to collect all the logs ?

Regards,

-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Decanter & Pax Appender

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
bundle level works in startup.properties. In feature, it won't work 
anyway as pax-logging is started itself in startup.properties.

Regards
JB

On 09/20/2015 06:29 PM, Charles Moulliard wrote:
> That was my idea too to add it to etc/startup.properties as bundle level
> doesn't work.
>
> On Sun, Sep 20, 2015 at 6:15 PM, Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
>     Hi Charles,
>
>     the Decanter Pax Appender is called as soon as you start decanter.
>
>     If you want to start earlier, you can add the Decanter Log Collector
>     in etc/startup.properties, or you can use start level in your own
>     features.Xml.
>
>     In Decanter 1.1.0, you will have the Decanter File Collector that
>     can poll a file (as you can do in logstash) as an alternative.
>
>     Regards
>     JB
>
>
>     On 09/20/2015 05:51 PM, Charles Moulliard wrote:
>
>         Hi,
>
>         The Decanter Pax Logging Appender is registered as a OSGI
>         Service when
>         the collector bundle is called
>         (https://github.com/apache/karaf-decanter/blob/master/collector/log/src/main/java/org/apache/karaf/decanter/collector/log/Activator.java#L45)
>
>         As this Decanter Collector Log bundle is not part of the
>         startup.properties script of Karaf but deployed as a bundle using
>         features, how can we be sure that the bundle will be started
>         before that
>         Karaf start to call the log appender of Pax and that we will be
>         able to
>         collect all the logs ?
>
>         Regards,
>
>         --
>         Charles Moulliard
>         Apache Committer / Architect @RedHat
>         Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>         <http://cmoulliard.github.io>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Decanter & Pax Appender

Posted by Charles Moulliard <ch...@gmail.com>.
That was my idea too to add it to etc/startup.properties as bundle level
doesn't work.

On Sun, Sep 20, 2015 at 6:15 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Hi Charles,
>
> the Decanter Pax Appender is called as soon as you start decanter.
>
> If you want to start earlier, you can add the Decanter Log Collector in
> etc/startup.properties, or you can use start level in your own features.Xml.
>
> In Decanter 1.1.0, you will have the Decanter File Collector that can poll
> a file (as you can do in logstash) as an alternative.
>
> Regards
> JB
>
>
> On 09/20/2015 05:51 PM, Charles Moulliard wrote:
>
>> Hi,
>>
>> The Decanter Pax Logging Appender is registered as a OSGI Service when
>> the collector bundle is called
>> (
>> https://github.com/apache/karaf-decanter/blob/master/collector/log/src/main/java/org/apache/karaf/decanter/collector/log/Activator.java#L45
>> )
>>
>> As this Decanter Collector Log bundle is not part of the
>> startup.properties script of Karaf but deployed as a bundle using
>> features, how can we be sure that the bundle will be started before that
>> Karaf start to call the log appender of Pax and that we will be able to
>> collect all the logs ?
>>
>> Regards,
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Re: Decanter & Pax Appender

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Charles,

the Decanter Pax Appender is called as soon as you start decanter.

If you want to start earlier, you can add the Decanter Log Collector in 
etc/startup.properties, or you can use start level in your own features.Xml.

In Decanter 1.1.0, you will have the Decanter File Collector that can 
poll a file (as you can do in logstash) as an alternative.

Regards
JB

On 09/20/2015 05:51 PM, Charles Moulliard wrote:
> Hi,
>
> The Decanter Pax Logging Appender is registered as a OSGI Service when
> the collector bundle is called
> (https://github.com/apache/karaf-decanter/blob/master/collector/log/src/main/java/org/apache/karaf/decanter/collector/log/Activator.java#L45)
>
> As this Decanter Collector Log bundle is not part of the
> startup.properties script of Karaf but deployed as a bundle using
> features, how can we be sure that the bundle will be started before that
> Karaf start to call the log appender of Pax and that we will be able to
> collect all the logs ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com