Hi All,
I am a newbie to ServiceMix. I wanted a way to configure
ServiceMix's pax logger to Include my custom rollingfileappender and layout.
For Example
<code>
#Debug logs
log4j.appender.DebugLogs=com.smx.log.core.MyRollingFileAppender
log4j.appender.DebugLogs.File=C:/logs/debug/MyDebug.log
log4j.appender.DebugLogs.MaxFileSize=50KB
log4j.appender.DebugLogs.append=true
log4j.appender.DebugLogs.layout=com.smx.log.core.MyLayout
log4j.logger.MyDebugLogs= DEBUG, DebugLogs
</code>
Or my custom log4j.xml.
1. Putting a myGroupId.cfg file in /etc folder does not work as it does
not pick it
2. Putting a log4j.xml in /etc folder also dosen't work.
3. Putting the "MyRollingFileAppender" and "MyLayout" classes in
org.ops4j.pax.logging/pax-logging-service/1.6.3/ pax-logging-service-1.6.3.jar
and the related config (loggers and appenders) in org.ops4j.pax.logging.cfg
works but this is not how I want it. Because I cannot have my own logging
bundle and need to manipulate pax logging jar everytime.
Any help is truly appreciated.
Regards,
Shripati Bhat
________________________________
DISCLAIMER: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message by
anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or omission
taken by you in reliance on it, is prohibited and may be unlawful. Please
immediately contact the sender if you have received this message in error.
Further, this e-mail may contain viruses and all reasonable precaution to
minimize the risk arising there from is taken by OnMobile. OnMobile is not
liable for any damage sustained by you as a result of any virus in this e-mail.
All applicable virus checks should be carried out by you before opening this
e-mail or any attachment thereto.
Thank you - OnMobile Global Limited.