Hi Andrei, Here is the link of the code committed in ServiceMix project : http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/osgi-logging/
Regards, Charles On Fri, Aug 10, 2012 at 9:03 PM, Andrei Pozolotin < andrei.pozolo...@gmail.com> wrote: > *Charles: > * > can you please post a link to camel source > where you "created yesterday a JMS Appender" etc > > in case you are interested, this is my SNS appender: > > https://github.com/carrot-garden/carrot-log/tree/master/carrot-log4j-aws-sns > > Thank you, > > Andrei > > -------- Original Message -------- > Subject: Re: add new log appender dynamically to org.ops4j.pax.logging at > run time > From: Charles Moulliard <ch0...@gmail.com> <ch0...@gmail.com> > To: user@karaf.apache.org > Date: Thu 09 Aug 2012 01:27:47 AM CDT > > Hi Andrei, > > You could add a new log appender (JMS, ....) as a bundle. This appender > should implements the interface PaxAppender of Pax Logging and registers a > service. I have created yesterday a JMS Appender for ActiveMQ that we will > use on ServiceMix. Depending when you have to use it or not, you could stop > / start the bundle exposing a Pax Loggin OSGI Service. > Another solution is maybe to use the camel paxlogging component ( > http://camel.apache.org/pax-logging.html) in combination with your > camel-aws and a trigger pattern to decide when you must send or not / log > or not. > > Regards, > > Charles Moulliard > Apache Committer / Sr. Pr. Consultant at FuseSource.com > Twitter : @cmoulliard > Blog : http://cmoulliard.blogspot.com > > On Thu, Aug 9, 2012 at 5:59 AM, Andrei Pozolotin < > andrei.pozolo...@gmail.com> wrote: > >> *Hi;* >> >> I am curious what is the right way to >> >> add new log appender dynamically to org.ops4j.pax.logging at run time >> >> that is, NOT programmatically, but from a sibling config file such as >> ${karaf.base}/etc/org.ops4j.pax.logging-extra.cfg >> >> ? >> >> I can not find this feature in the source, must be looking in the wrong >> place :-) >> >> use case: AWS SNS based appender should be activated/deactivated on >> demand; >> http://aws.amazon.com/sns/ >> >> Thank you, >> >> Andrei >> >> > > > > > > > -- Charles Moulliard Apache Committer / Sr. Pr. Consultant at FuseSource.com Twitter : @cmoulliard Blog : http://cmoulliard.blogspot.com