Hi there,

I would like to use 
http://logging.apache.org/log4j/companions/extras/index.html with pax-logging 
to be able to configure loggers more flexibly.
I have used maven-shade and maven-bundle plugins to shade org.apache.log4j 
packages from log4j-extras to prevent classloading conflicts with pax logging 
and to create an OSGi-fragment for org.ops4j.pax.logging.pax-logging-service 
bundle to be able to use new appenders.

Now I would like to configure new org.apache.log4j.rolling.RollingFileAppender 
from log4j-extras and set its triggeringPolicy property 
(http://logging.apache.org/log4j/companions/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html#setTriggeringPolicy%28org.apache.log4j.rolling.TriggeringPolicy%29)
 to CompositeTriggeringPolicy 
(http://logging.apache.org/log4j/companions/extras/apidocs/org/apache/log4j/rolling/CompositeTriggeringPolicy.html)

The problem is I don't know how to specify in org.ops4j.pax.logging.cfg that 
CompositeTriggeringPolicy.addTriggeringPolicy(TriggeringPolicy) must be called 
in order to add a TriggeringPolicy.

It seems that org.apache.log4j.PaxLoggingConfigurator is responsible for 
handling org.ops4j.pax.logging.cfg, but it is not possible to replace or 
configure it somehow by means of OSGi services.

So I'm interested in whether it is possible to configure custom appenders more 
flexibly or to customize the way PaxLoggingConfigurator handles 
org.ops4j.pax.logging.cfg?


Best Regards,
Sergey Zhemzhitsky


_______________________________________________________

The information contained in this message may be privileged and conf idential 
and protected from disclosure. If you are not the original intended recipient, 
you are hereby notified that any review, retransmission, dissemination, or 
other use of, or taking of any action in reliance upon, this information is 
prohibited. If you have received this communication in error, please notify the 
sender immediately by replying to this message and delete it from your 
computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or 
go to www.troika.ru/eng/Contacts/system.wbp  

Reply via email to