|
From: <nic...@uk...> - 2005-12-15 14:43:11
|
Yes, get rid of your console appender.... :-) Or you have to change the logging setting for JSW (you dont want INFO) Personally, I configure Log4J to log only to console - and set JSW to INFO. Thats mainly because some libraries we use are crap and log stuff to System.out & System.err This way you get your log4j logging properly interleaved with anything that ends up in System.out / System.err -Nick Internet vo...@vi...@lists.sourceforge.net - 15/12/2005 07:53 Please respond to wra...@li... Sent by: wra...@li... To: wrapper-user cc: Subject: [Wrapper-user] Wrapper wrapping logs?? Hi I'm using log4j in my applications and my console appender gets wrapped into the wrapper log files. Is there a way to stop this!? Thanks This is my log4j.xml config file... <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="target" value="System.out"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> </layout> </appender> <appender name="file" class="org.apache.log4j.FileAppender"> <param name="File" value="../logs/scheduler.log"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> </layout> </appender> <root> <level value="info" /> <appender-ref ref="console" /> <appender-ref ref="file" /> </root> </log4j:configuration> ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. ********************************************************************************************** BNP Paribas Private Bank London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Securities Services London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Fund Services UK Limited is authorised and regulated by the Financial Services Authority |