From log4j-user-returncourtneybowers@example.com Tue Feb 02 08:44:10 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 35437 invoked from network); 2 Feb 2010 08:44:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Feb 2010 08:44:10 -0000 Received: (qmail 81684 invoked by uid 500); 2 Feb 2010 08:44:09 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 81613 invoked by uid 500); 2 Feb 2010 08:44:08 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 81602 invoked by uid 99); 2 Feb 2010 08:44:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 08:44:08 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of courtneybowers@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mcjs-ironport1.johnlewis.co.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 08:43:58 +0000 X-IronPort-AV: E=Sophos;i="4.49,389,1262563200"; d="scan'208,217,147";a="28987223" Received: from unknown (HELO mclne01.johnlewis.co.uk) ([83.161.120.155]) by mcjs-ironport1.johnlewis.co.uk with ESMTP; 02 Feb 2010 08:43:34 +0000 To: courtneybowers@example.com Subject: Using SocketAppender in Websphere MIME-Version: 1.0 X-KeepSent: BD9D40B8:5E976BA9-802576BE:002F835D; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006 Message-ID: <courtneybowers@example.com> From: courtneybowers@example.com Date: Tue, 2 Feb 2010 08:43:33 +0000 X-MIMETrack: Serialize by Router on MCLNE01/JLP(Release 8.5 HF211|March 27, 2009) at 02/02/2010 08:43:34, Serialize complete at 02/02/2010 08:43:34 Content-Type: multipart/related; boundary="=_related 002FEED0802576BE_=" --=_related 002FEED0802576BE_= Content-Type: multipart/alternative; boundary="=_alternative 002FEED0802576BE_=" --=_alternative 002FEED0802576BE_= Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Hi Guys, Please can you advise me here. I am trying to use SocketAppender for the first time in Websphere. This is how my config file looks like : <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="SocketAppender" class= "org.apache.log4j.net.SocketAppender"> <param name="RemoteHost" value="localhost" /> <param name="Port" value="4445" /> </appender> <root> <priority value="WARN" /> <appender-ref ref="SocketAppender" /> </root> </log4j:configuration> Now when I re-start the server after deploying my application, I get below error on the console : [02/02/10 08:34:41:365 GMT] 0000000f SystemErr R log4j:ERROR Could not connect to remote log4j server at [localhost]. We will try again later. [02/02/10 08:34:41:365 GMT] 0000000f SystemErr R java.net.ConnectException: Connection refused: connect [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(Native Method) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(PlainSocketImpl.java:372) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(PlainSocketImpl.java:233) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(PlainSocketImpl.java:220) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(SocksSocketImpl.java:378) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(Socket.java:536) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(Socket.java:486) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com.<init>(Socket.java:394) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com.<init>(Socket.java:236) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(SocketAppender.java:203) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( SocketAppender.java:160) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(PropertySetter.java:256) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DOMConfigurator.java:220) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DOMConfigurator.java:150) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DOMConfigurator.java:163) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DOMConfigurator.java:425) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(DOMConfigurator.java:394) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(DOMConfigurator.java:829) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(DOMConfigurator.java:724) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(DOMConfigurator.java:553) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com.<init>( JJSLoggerInitialiser.java:72) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(Native Method) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( NativeConstructorAccessorImpl.java:67) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DelegatingConstructorAccessorImpl.java:45) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(Constructor.java:521) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(BeanUtils.java:126) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( SimpleInstantiationStrategy.java:107) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( ConstructorResolver.java:275) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractAutowireCapableBeanFactory.java:984) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractAutowireCapableBeanFactory.java:886) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractAutowireCapableBeanFactory.java:479) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractAutowireCapableBeanFactory.java:450) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com$1.getObject( AbstractBeanFactory.java:290) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DefaultSingletonBeanRegistry.java:222) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractBeanFactory.java:287) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractBeanFactory.java:189) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DefaultListableBeanFactory.java:557) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractApplicationContext.java:842) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( AbstractApplicationContext.java:416) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( ContextLoader.java:261) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( ContextLoader.java:192) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( ContextLoaderListener.java:47) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( WebApp.java:645) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( WebApp.java:311) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(WebApp.java:290) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( WebGroup.java:90) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( VirtualHost.java:157) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com(WebContainer.java:665) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( WebContainer.java:618) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( WebContainerImpl.java:335) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( WebContainerImpl.java:551) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( ApplicationMgrImpl.java:1303) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DeployedApplicationImpl.java:1138) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( DeployedModuleImpl.java:569) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( ApplicationMgrImpl.java:1770) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com._startModule( ApplicationMgrImpl.java:1718) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com$ApplicationNotifier.classChanged( ApplicationMgrImpl.java:1930) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com( ClassLoaderManager.java:548) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com$000( ClassLoaderManager.java:71) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com$ReloadTimerTask.alarm( ClassLoaderManager.java:584) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com._Alarm.run(_Alarm.java:90) [02/02/10 08:34:41:459 GMT] 0000000f SystemErr courtneybowers@example.com$Worker.run(ThreadPool.java:1473) Has anyone used Socket appender before in Websphere 6.1 ?? if yes, please can they advise me how to configure the same ? ********************************************************************** This email is confidential and may contain copyright material of the John Lewis Partnership. If you are not the intended recipient, please notify us immediately and delete all copies of this message. (Please note that it is your responsibility to scan this message for viruses). Email to and from the John Lewis Partnership is automatically monitored for operational and lawful business reasons. ********************************************************************** John Lewis plc Registered in England 233462 Registered office 171 Victoria Street London SW1E 5NN Websites: http://www.johnlewis.com http://www.waitrose.com http://www.greenbee.com http://www.johnlewispartnership.co.uk ********************************************************************** --=_alternative 002FEED0802576BE_= Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="us-ascii" <br><font size=2 face="sans-serif">Hi Guys,</font> <br> <br><font size=2 face="sans-serif">Please can you advise me here. I am trying to use SocketAppender for the first time in Websphere. This is how my config file looks like :</font> <br> <br><font size=2 color=#008080 face="Courier New">&lt;?</font><font size=2 color=#3f8080 face="Courier New">xml </font><font size=2 color=#800080 face="Courier New">version</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;1.0&quot; </font><font size=2 color=#800080 face="Courier New">encoding</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;UTF-8&quot; </font><font size=2 color=#008080 face="Courier New">?&gt;</font> <br><font size=2 color=#008080 face="Courier New">&lt;!</font><font size=2 color=#3f8080 face="Courier New">DOCTYPE </font><font size=2 color=#000080 face="Courier New">log4j:configuration </font><font size=2 color=#808080 face="Courier New">SYSTEM </font><font size=2 color=#3f8080 face="Courier New">&quot;log4j.dtd&quot; </font><font size=2 color=#008080 face="Courier New">&gt;</font> <br><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">log4j:configuration </font><font size=2 color=#800080 face="Courier New">xmlns:log4j</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;http://jakarta.apache.org/log4j/&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">appender </font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;SocketAppender&quot; </font><font size=2 color=#800080 face="Courier New">class</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;org.apache.log4j.net.SocketAppender&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">param </font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;RemoteHost&quot; </font><font size=2 color=#800080 face="Courier New">value</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;localhost&quot; </font><font size=2 color=#008080 face="Courier New">/&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">param </font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;Port&quot; </font><font size=2 color=#800080 face="Courier New">value</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;4445&quot; </font><font size=2 color=#008080 face="Courier New">/&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">appender</font><font size=2 color=#008080 face="Courier New">&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">root</font><font size=2 color=#008080 face="Courier New">&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">priority </font><font size=2 color=#800080 face="Courier New">value</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;WARN&quot; </font><font size=2 color=#008080 face="Courier New">/&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">appender-ref </font><font size=2 color=#800080 face="Courier New">ref</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;SocketAppender&quot; </font><font size=2 color=#008080 face="Courier New">/&gt;</font> <br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">root</font><font size=2 color=#008080 face="Courier New">&gt;</font> <br><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">log4j:configuration</font><font size=2 color=#008080 face="Courier New">&gt;</font> <br> <br><font size=2 face="Courier New">Now when I re-start the server after deploying my application, I get below error on the console :</font> <br> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:365 GMT] 0000000f SystemErr &nbsp; &nbsp; R log4j:ERROR Could not connect to remote log4j server at [localhost]. We will try again later.</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:365 GMT] 0000000f SystemErr &nbsp; &nbsp; R </font><font size=2 color=#000080 face="Courier New"><u>java.net.ConnectException</u></font><font size=2 color=red face="Courier New">: Connection refused: connect</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.PlainSocketImpl.socketConnect(</font><font size=2 color=#000080 face="Courier New"><u>Native Method</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.PlainSocketImpl.doConnect(</font><font size=2 color=#000080 face="Courier New"><u>PlainSocketImpl.java:372</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.PlainSocketImpl.connectToAddress(</font><font size=2 color=#000080 face="Courier New"><u>PlainSocketImpl.java:233</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.PlainSocketImpl.connect(</font><font size=2 color=#000080 face="Courier New"><u>PlainSocketImpl.java:220</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.SocksSocketImpl.connect(</font><font size=2 color=#000080 face="Courier New"><u>SocksSocketImpl.java:378</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.Socket.connect(</font><font size=2 color=#000080 face="Courier New"><u>Socket.java:536</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.Socket.connect(</font><font size=2 color=#000080 face="Courier New"><u>Socket.java:486</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.Socket.&lt;init&gt;(</font><font size=2 color=#000080 face="Courier New"><u>Socket.java:394</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.net.Socket.&lt;init&gt;(</font><font size=2 color=#000080 face="Courier New"><u>Socket.java:236</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.net.SocketAppender.connect(</font><font size=2 color=#000080 face="Courier New"><u>SocketAppender.java:203</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.net.SocketAppender.activateOptions(</font><font size=2 color=#000080 face="Courier New"><u>SocketAppender.java:160</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.config.PropertySetter.activate(</font><font size=2 color=#000080 face="Courier New"><u>PropertySetter.java:256</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.parseAppender(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:220</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:150</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:163</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:425</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.parseRoot(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:394</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.parse(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:829</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.doConfigure(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:724</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.log4j.xml.DOMConfigurator.configure(</font><font size=2 color=#000080 face="Courier New"><u>DOMConfigurator.java:553</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.johnlewis.jjs.jjs2logging.common.loggingconfiguration.JJSLoggerInitialiser.&lt;init&gt;(</font><font size=2 color=#000080 face="Courier New"><u>JJSLoggerInitialiser.java:72</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(</font><font size=2 color=#000080 face="Courier New"><u>Native Method</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(</font><font size=2 color=#000080 face="Courier New"><u>NativeConstructorAccessorImpl.java:67</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(</font><font size=2 color=#000080 face="Courier New"><u>DelegatingConstructorAccessorImpl.java:45</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Constructor.newInstance(</font><font size=2 color=#000080 face="Courier New"><u>Constructor.java:521</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.BeanUtils.instantiateClass(</font><font size=2 color=#000080 face="Courier New"><u>BeanUtils.java:126</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(</font><font size=2 color=#000080 face="Courier New"><u>SimpleInstantiationStrategy.java:107</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(</font><font size=2 color=#000080 face="Courier New"><u>ConstructorResolver.java:275</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(</font><font size=2 color=#000080 face="Courier New"><u>AbstractAutowireCapableBeanFactory.java:984</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(</font><font size=2 color=#000080 face="Courier New"><u>AbstractAutowireCapableBeanFactory.java:886</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(</font><font size=2 color=#000080 face="Courier New"><u>AbstractAutowireCapableBeanFactory.java:479</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(</font><font size=2 color=#000080 face="Courier New"><u>AbstractAutowireCapableBeanFactory.java:450</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(</font><font size=2 color=#000080 face="Courier New"><u>AbstractBeanFactory.java:290</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(</font><font size=2 color=#000080 face="Courier New"><u>DefaultSingletonBeanRegistry.java:222</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(</font><font size=2 color=#000080 face="Courier New"><u>AbstractBeanFactory.java:287</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(</font><font size=2 color=#000080 face="Courier New"><u>AbstractBeanFactory.java:189</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(</font><font size=2 color=#000080 face="Courier New"><u>DefaultListableBeanFactory.java:557</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(</font><font size=2 color=#000080 face="Courier New"><u>AbstractApplicationContext.java:842</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(</font><font size=2 color=#000080 face="Courier New"><u>AbstractApplicationContext.java:416</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.web.context.ContextLoader.createWebApplicationContext(</font><font size=2 color=#000080 face="Courier New"><u>ContextLoader.java:261</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.web.context.ContextLoader.initWebApplicationContext(</font><font size=2 color=#000080 face="Courier New"><u>ContextLoader.java:192</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at org.springframework.web.context.ContextLoaderListener.contextInitialized(</font><font size=2 color=#000080 face="Courier New"><u>ContextLoaderListener.java:47</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(</font><font size=2 color=#000080 face="Courier New"><u>WebApp.java:645</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(</font><font size=2 color=#000080 face="Courier New"><u>WebApp.java:311</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(</font><font size=2 color=#000080 face="Courier New"><u>WebApp.java:290</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(</font><font size=2 color=#000080 face="Courier New"><u>WebGroup.java:90</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(</font><font size=2 color=#000080 face="Courier New"><u>VirtualHost.java:157</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(</font><font size=2 color=#000080 face="Courier New"><u>WebContainer.java:665</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(</font><font size=2 color=#000080 face="Courier New"><u>WebContainer.java:618</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.webcontainer.component.WebContainerImpl.install(</font><font size=2 color=#000080 face="Courier New"><u>WebContainerImpl.java:335</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.webcontainer.component.WebContainerImpl.start(</font><font size=2 color=#000080 face="Courier New"><u>WebContainerImpl.java:551</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(</font><font size=2 color=#000080 face="Courier New"><u>ApplicationMgrImpl.java:1303</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(</font><font size=2 color=#000080 face="Courier New"><u>DeployedApplicationImpl.java:1138</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.runtime.component.DeployedModuleImpl.start(</font><font size=2 color=#000080 face="Courier New"><u>DeployedModuleImpl.java:569</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.runtime.component.ApplicationMgrImpl.startModule(</font><font size=2 color=#000080 face="Courier New"><u>ApplicationMgrImpl.java:1770</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.runtime.component.ApplicationMgrImpl._startModule(</font><font size=2 color=#000080 face="Courier New"><u>ApplicationMgrImpl.java:1718</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(</font><font size=2 color=#000080 face="Courier New"><u>ApplicationMgrImpl.java:1930</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(</font><font size=2 color=#000080 face="Courier New"><u>ClassLoaderManager.java:548</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.classloader.ClassLoaderManager.access$000(</font><font size=2 color=#000080 face="Courier New"><u>ClassLoaderManager.java:71</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.alarm(</font><font size=2 color=#000080 face="Courier New"><u>ClassLoaderManager.java:584</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ejs.util.am._Alarm.run(</font><font size=2 color=#000080 face="Courier New"><u>_Alarm.java:90</u></font><font size=2 color=red face="Courier New">)</font> <br><font size=2 color=red face="Courier New">[02/02/10 08:34:41:459 GMT] 0000000f SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at com.ibm.ws.util.ThreadPool$Worker.run(</font><font size=2 color=#000080 face="Courier New"><u>ThreadPool.java:1473</u></font><font size=2 color=red face="Courier New">)</font> <br> <br><font size=2 face="sans-serif">Has anyone used Socket appender before in Websphere 6.1 ?? if yes, please can they advise me how to configure the same ?</font> <br><font size=2 face="sans-serif"><br> </font><img src=cid:_1_06244EFC062448C0002FEED0802576BE><pre>********************************************************************** This email is confidential and may contain copyright material of the John Lewis Partnership. If you are not the intended recipient, please notify us immediately and delete all copies of this message. (Please note that it is your responsibility to scan this message for viruses). Email to and from the John Lewis Partnership is automatically monitored for operational and lawful business reasons. ********************************************************************** John Lewis plc Registered in England 233462 Registered office 171 Victoria Street London SW1E 5NN Websites: http://www.johnlewis.com http://www.waitrose.com http://www.greenbee.com http://www.johnlewispartnership.co.uk ********************************************************************** </pre> --=_alternative 002FEED0802576BE_=-- --=_related 002FEED0802576BE_=-- From log4j-user-returncourtneybowers@example.com Tue Feb 02 08:54:26 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 37150 invoked from network); 2 Feb 2010 08:54:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Feb 2010 08:54:26 -0000 Received: (qmail 91284 invoked by uid 500); 2 Feb 2010 08:54:25 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 91211 invoked by uid 500); 2 Feb 2010 08:54:25 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 91200 invoked by uid 99); 2 Feb 2010 08:54:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 08:54:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO no-sv-exch-01.ketech.local) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 08:54:17 +0000 Received: from no-sv-exch-01.ketech.local ([83.161.120.155]) by no-sv-exch-01.ketech.local ([83.161.120.155]) with mapi; Tue, 2 Feb 2010 08:53:57 +0000 From: Michael Erskine <courtneybowers@example.com> To: Log4J Users List <courtneybowers@example.com> Date: Tue, 2 Feb 2010 08:53:55 +0000 Subject: RE: Using SocketAppender in Websphere Thread-Topic: Using SocketAppender in Websphere Thread-Index: Acqj4+UIOIpqGJbrSlu4XTGT6rRzfwAAPwzg Message-ID: <courtneybowers@example.com> References: <courtneybowers@example.com> In-Reply-To: <courtneybowers@example.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > From: courtneybowers@example.com [mailto:courtneybowers@example.com] > Subject: Using SocketAppender in Websphere > Please can you advise me here. I am trying to use SocketAppender for the = first > time in Websphere. This is how my config file looks like : > Now when I re-start the server after deploying my application, I get belo= w > error on the console : >=20 > [02/02/10 08:34:41:365 GMT] 0000000f SystemErr R log4j:ERROR Could no= t > connect to remote log4j server at [localhost]. We will try again later. > [02/02/10 08:34:41:365 GMT] 0000000f SystemErr R > java.net.ConnectException: Connection refused: connect Sorry, but I have to ask: is there a suitable socket server listening on po= rt 4445 of localhost? Unless you have a permanent logging server I suggest = you use a SocketHubAppender. Regards, Michael Erskine. --------------------------------------------------------------------- To unsubscribe, e-mail: courtneybowers@example.com For additional commands, e-mail: courtneybowers@example.com From log4j-user-returncourtneybowers@example.com Thu Feb 04 07:57:45 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 82122 invoked from network); 4 Feb 2010 07:57:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Feb 2010 07:57:45 -0000 Received: (qmail 48696 invoked by uid 500); 4 Feb 2010 07:57:44 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 48621 invoked by uid 500); 4 Feb 2010 07:57:43 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 48610 invoked by uid 99); 4 Feb 2010 07:57:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 07:57:43 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mail.ebira.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 07:57:32 +0000 Received: from localhost (localhost [83.161.120.155]) by mail.ebira.de (Postfix) with ESMTP id B19B12BE140 for <courtneybowers@example.com>; Thu, 4 Feb 2010 08:57:10 +0100 (CET) X-Virus-Scanned: Debian courtneybowers@example.com Received: from mail.ebira.de ([83.161.120.155]) by localhost (mail.ebira.de [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id TNQ1P+AuM46W for <courtneybowers@example.com>; Thu, 4 Feb 2010 08:57:10 +0100 (CET) Received: by mail.ebira.de (Postfix, from userid 33) id 4829C2BE1FB; Thu, 4 Feb 2010 08:57:10 +0100 (CET) Received: from jensen.ebr (jensen.ebr [83.161.120.155]) by mail.ebira.de (Horde Framework) with HTTP; Thu, 04 Feb 2010 08:57:10 +0100 Message-ID: <courtneybowers@example.com> Date: Thu, 04 Feb 2010 08:57:10 +0100 From: "Jens Gruentjes" <courtneybowers@example.com> To: courtneybowers@example.com Subject: Problems with inheritance of com.foo... loggers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) Hello to all readers, I am new to log4j and I encounter several problems which are maybe =20 caused by my limited understanding fo log4j. I have a simple setup with two classes (de.wota.MyApp and =20 de.wota.segmentation.Bar) and an xml configuration file for log4j. I =20 thought that the logger defined in Bar.java inherits its level and =20 most of all its appender(s) from the logger defined in MyApp.java. But =20 despite reading the manuals and the list archives I always get the =20 following error when I execute MyApp: jens@jensen ~/Java/wota_rw $ java de.wota.MyApp log4j: reset attribute=3D "false". log4j: Threshold =3D"null". log4j: Retreiving an instance of org.apache.log4j.Logger. log4j: Setting [de.wota.MyApp] additivity to [true]. log4j: Level value for de.wota.MyApp is [DEBUG]. log4j: de.wota.MyApp level set to DEBUG log4j: Class name: [org.apache.log4j.ConsoleAppender] log4j: Setting property [target] to [System.out]. log4j: Setting property [threshold] to [INFO]. log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" log4j: Setting property [conversionPattern] to [%8r %p %c %x - %m%n]. log4j: Adding appender named [console] to category [de.wota.MyApp]. 0 INFO de.wota.MyApp - Entering application. log4j:WARN No appenders could be found for logger (de.wota.segmentation.Bar)= . log4j:WARN Please initialize the log4j system properly. Parent is root 1 INFO de.wota.MyApp - Exiting application. jens@jensen ~/Java/wota_rw $ What I expected to see was the output from Bar.java which is missing =20 here. I wanted to know who is the parent of the logger in Bar.java is =20 and it turned out to be root. I thought that this should be the logger =20 from MyApp.java. Can someone tell me what I misunderstand? I am a =20 little confused. The code follows below. Thanks for your explanations and your help! This is MyApp.java: package de.wota; import org.apache.log4j.Logger; import org.apache.log4j.xml.DOMConfigurator; import de.wota.segmentation.Bar; public class MyApp { // Define a static logger variable so that it references the // Logger instance named "MyApp". static Logger logger =3D Logger.getLogger(MyApp.class); public static void main(String[] args) { // Set up an xml configuration that logs on the console. DOMConfigurator.configureAndWatch("config_log.xml"); logger.info("Entering application."); Bar bar =3D new Bar(); bar.doIt(); logger.info("Exiting application."); } } This is Bar.java: package de.wota.segmentation; import org.apache.log4j.Logger; public class Bar { static Logger logger =3D Logger.getLogger(Bar.class); public void doIt() { logger.debug("Did it again!"); System.out.println("Parent is "+logger.getParent().getName()); } } And finally config_log.xml <?xml version=3D"1.0" encoding=3D"UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration debug=3D"true" =20 xmlns:log4j=3D"http://jakarta.apache.org/log4j/"> <appender name=3D"console" class=3D"org.apache.log4j.ConsoleAppender"> <param name=3D"Target" value=3D"System.out"/> <param name=3D"threshold" value=3D"info" /> <layout class=3D"org.apache.log4j.PatternLayout"> <param name=3D"ConversionPattern" value=3D"%8r %p %c %x - %m%n"/> </layout> </appender> <logger name=3D"de.wota.MyApp"> <level value=3D"DEBUG" /> <appender-ref ref=3D"console" /> </logger> </log4j:configuration> --=20 Kind regards Jens --------------------------------------------------------------------- To unsubscribe, e-mail: courtneybowers@example.com For additional commands, e-mail: courtneybowers@example.com From log4j-user-returncourtneybowers@example.com Thu Feb 04 12:19:59 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 86308 invoked from network); 4 Feb 2010 12:19:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Feb 2010 12:19:59 -0000 Received: (qmail 3001 invoked by uid 500); 4 Feb 2010 12:19:58 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 2952 invoked by uid 500); 4 Feb 2010 12:19:58 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 2941 invoked by uid 99); 4 Feb 2010 12:19:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 12:19:57 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of courtneybowers@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wmail3.whirlpool.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 12:19:45 +0000 X-IronPort-AV: E=Sophos;i="4.49,404,1262581200"; d="scan'208";a="164174177" Received: from unknown (HELO adcns29.whirlpool.com) ([83.161.120.155]) by wmail3c.whirlpool.com with ESMTP; 04 Feb 2010 07:19:21 -0500 In-Reply-To: <courtneybowers@example.com> To: "Log4J Users List" <courtneybowers@example.com> Cc: courtneybowers@example.com Subject: Re: Problems with inheritance of com.foo... loggers MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 From: Douglas E Wegscheid <courtneybowers@example.com> Message-ID: <courtneybowers@example.com> Date: Thu, 4 Feb 2010 07:16:38 -0500 X-MIMETrack: Serialize by Router on ADCNS29/BentonHarbor/US/Whirlpool at 02/04/2010 07:19:22 AM, Serialize complete at 02/04/2010 07:19:22 AM Content-Type: multipart/alternative; boundary="=_alternative 004376CF852576C0_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 004376CF852576C0_= Content-Type: text/plain; charset="US-ASCII" "de.wota.segmentation.Bar" will inherit from "de.wota.segmentation", "de.wota", and "de" but not "de.wota.MyApp". Change your configuration to set up logging for "de.wota" instead of "de.wota.MyApp". Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (802)829-8628 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." "Jens Gruentjes" <courtneybowers@example.com> wrote on 02/04/2010 02:57:10 AM: > Hello to all readers, > > I am new to log4j and I encounter several problems which are maybe > caused by my limited understanding fo log4j. > > I have a simple setup with two classes (de.wota.MyApp and > de.wota.segmentation.Bar) and an xml configuration file for log4j. I > thought that the logger defined in Bar.java inherits its level and > most of all its appender(s) from the logger defined in MyApp.java. But > despite reading the manuals and the list archives I always get the > following error when I execute MyApp: > > jens@jensen ~/Java/wota_rw $ java de.wota.MyApp > log4j: reset attribute= "false". > log4j: Threshold ="null". > log4j: Retreiving an instance of org.apache.log4j.Logger. > log4j: Setting [de.wota.MyApp] additivity to [true]. > log4j: Level value for de.wota.MyApp is [DEBUG]. > log4j: de.wota.MyApp level set to DEBUG > log4j: Class name: [org.apache.log4j.ConsoleAppender] > log4j: Setting property [target] to [System.out]. > log4j: Setting property [threshold] to [INFO]. > log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" > log4j: Setting property [conversionPattern] to [%8r %p %c %x - %m%n]. > log4j: Adding appender named [console] to category [de.wota.MyApp]. > 0 INFO de.wota.MyApp - Entering application. > log4j:WARN No appenders could be found for logger (de.wota.segmentation.Bar). > log4j:WARN Please initialize the log4j system properly. > Parent is root > 1 INFO de.wota.MyApp - Exiting application. > jens@jensen ~/Java/wota_rw $ > > What I expected to see was the output from Bar.java which is missing > here. I wanted to know who is the parent of the logger in Bar.java is > and it turned out to be root. I thought that this should be the logger > from MyApp.java. Can someone tell me what I misunderstand? I am a > little confused. The code follows below. > > Thanks for your explanations and your help! > > > This is MyApp.java: > > package de.wota; > > import org.apache.log4j.Logger; > import org.apache.log4j.xml.DOMConfigurator; > > import de.wota.segmentation.Bar; > > public class MyApp { > // Define a static logger variable so that it references the > // Logger instance named "MyApp". > static Logger logger = Logger.getLogger(MyApp.class); > > public static void main(String[] args) { > > // Set up an xml configuration that logs on the console. > DOMConfigurator.configureAndWatch("config_log.xml"); > > logger.info("Entering application."); > Bar bar = new Bar(); > bar.doIt(); > logger.info("Exiting application."); > } > } > > This is Bar.java: > > package de.wota.segmentation; > > import org.apache.log4j.Logger; > > public class Bar { > static Logger logger = Logger.getLogger(Bar.class); > > public void doIt() { > logger.debug("Did it again!"); > System.out.println("Parent is "+logger.getParent().getName()); > } > > } > > And finally config_log.xml > > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> > > <log4j:configuration debug="true" > xmlns:log4j="http://jakarta.apache.org/log4j/"> > > <appender name="console" class="org.apache.log4j.ConsoleAppender"> > <param name="Target" value="System.out"/> > <param name="threshold" value="info" /> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%8r %p %c %x - %m%n"/> > </layout> > </appender> > > <logger name="de.wota.MyApp"> > <level value="DEBUG" /> > <appender-ref ref="console" /> > </logger> > > </log4j:configuration> > > -- > Kind regards > Jens > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: courtneybowers@example.com > For additional commands, e-mail: courtneybowers@example.com > --=_alternative 004376CF852576C0_=-- From log4j-user-returncourtneybowers@example.com Thu Feb 04 14:36:44 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 43130 invoked from network); 4 Feb 2010 14:36:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Feb 2010 14:36:44 -0000 Received: (qmail 1018 invoked by uid 500); 4 Feb 2010 14:36:43 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 945 invoked by uid 500); 4 Feb 2010 14:36:43 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 933 invoked by uid 99); 4 Feb 2010 14:36:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 14:36:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail.ebira.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 14:36:32 +0000 Received: from localhost (localhost [83.161.120.155]) by mail.ebira.de (Postfix) with ESMTP id 54B7B2BE1E1 for <courtneybowers@example.com>; Thu, 4 Feb 2010 15:36:11 +0100 (CET) X-Virus-Scanned: Debian courtneybowers@example.com Received: from mail.ebira.de ([83.161.120.155]) by localhost (mail.ebira.de [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 95og4LY0Bnoe for <courtneybowers@example.com>; Thu, 4 Feb 2010 15:36:09 +0100 (CET) Received: by mail.ebira.de (Postfix, from userid 33) id 76E472BE1FB; Thu, 4 Feb 2010 15:36:09 +0100 (CET) Received: from jensen.ebr (jensen.ebr [83.161.120.155]) by mail.ebira.de (Horde Framework) with HTTP; Thu, 04 Feb 2010 15:36:09 +0100 Message-ID: <courtneybowers@example.com> Date: Thu, 04 Feb 2010 15:36:09 +0100 From: "Jens Gruentjes" <courtneybowers@example.com> To: courtneybowers@example.com Subject: Re: Problems with inheritance of com.foo... loggers References: <courtneybowers@example.com> In-Reply-To: <courtneybowers@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-Virus-Checked: Checked by ClamAV on apache.org Hi Douglas, thanks for your answer which helped me save a lot of time. Your =20 explanation is evident but I did not realize that for myself. --=20 Kind regards Jens Zitat von "Douglas E Wegscheid" <courtneybowers@example.com>: > "de.wota.segmentation.Bar" will inherit from "de.wota.segmentation", > "de.wota", and "de" but not "de.wota.MyApp". > > Change your configuration to set up logging for "de.wota" instead of > "de.wota.MyApp". > > Douglas E Wegscheid > Lead Technical Analyst, Whirlpool Corporation > (802)829-8628 > > "A wrong note played hesitatingly is a wrong note. A wrong note played > with conviction is interpretation." > > > > "Jens Gruentjes" <courtneybowers@example.com> wrote on 02/04/2010 02:57:10 > AM: > >> Hello to all readers, >> >> I am new to log4j and I encounter several problems which are maybe >> caused by my limited understanding fo log4j. >> >> I have a simple setup with two classes (de.wota.MyApp and >> de.wota.segmentation.Bar) and an xml configuration file for log4j. I >> thought that the logger defined in Bar.java inherits its level and >> most of all its appender(s) from the logger defined in MyApp.java. But >> despite reading the manuals and the list archives I always get the >> following error when I execute MyApp: >> >> jens@jensen ~/Java/wota_rw $ java de.wota.MyApp >> log4j: reset attribute=3D "false". >> log4j: Threshold =3D"null". >> log4j: Retreiving an instance of org.apache.log4j.Logger. >> log4j: Setting [de.wota.MyApp] additivity to [true]. >> log4j: Level value for de.wota.MyApp is [DEBUG]. >> log4j: de.wota.MyApp level set to DEBUG >> log4j: Class name: [org.apache.log4j.ConsoleAppender] >> log4j: Setting property [target] to [System.out]. >> log4j: Setting property [threshold] to [INFO]. >> log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" >> log4j: Setting property [conversionPattern] to [%8r %p %c %x - %m%n]. >> log4j: Adding appender named [console] to category [de.wota.MyApp]. >> 0 INFO de.wota.MyApp - Entering application. >> log4j:WARN No appenders could be found for logger > (de.wota.segmentation.Bar). >> log4j:WARN Please initialize the log4j system properly. >> Parent is root >> 1 INFO de.wota.MyApp - Exiting application. >> jens@jensen ~/Java/wota_rw $ >> >> What I expected to see was the output from Bar.java which is missing >> here. I wanted to know who is the parent of the logger in Bar.java is >> and it turned out to be root. I thought that this should be the logger >> from MyApp.java. Can someone tell me what I misunderstand? I am a >> little confused. The code follows below. >> >> Thanks for your explanations and your help! >> >> >> This is MyApp.java: >> >> package de.wota; >> >> import org.apache.log4j.Logger; >> import org.apache.log4j.xml.DOMConfigurator; >> >> import de.wota.segmentation.Bar; >> >> public class MyApp { >> // Define a static logger variable so that it references the >> // Logger instance named "MyApp". >> static Logger logger =3D Logger.getLogger(MyApp.class); >> >> public static void main(String[] args) { >> >> // Set up an xml configuration that logs on the console. >> DOMConfigurator.configureAndWatch("config_log.xml"); >> >> logger.info("Entering application."); >> Bar bar =3D new Bar(); >> bar.doIt(); >> logger.info("Exiting application."); >> } >> } >> >> This is Bar.java: >> >> package de.wota.segmentation; >> >> import org.apache.log4j.Logger; >> >> public class Bar { >> static Logger logger =3D Logger.getLogger(Bar.class); >> >> public void doIt() { >> logger.debug("Did it again!"); >> System.out.println("Parent is "+logger.getParent().getName()); >> } >> >> } >> >> And finally config_log.xml >> >> <?xml version=3D"1.0" encoding=3D"UTF-8" ?> >> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> >> >> <log4j:configuration debug=3D"true" >> xmlns:log4j=3D"http://jakarta.apache.org/log4j/"> >> >> <appender name=3D"console" class=3D"org.apache.log4j.ConsoleAppender"> >> <param name=3D"Target" value=3D"System.out"/> >> <param name=3D"threshold" value=3D"info" /> >> <layout class=3D"org.apache.log4j.PatternLayout"> >> <param name=3D"ConversionPattern" value=3D"%8r %p %c %x - %m%n"/> >> </layout> >> </appender> >> >> <logger name=3D"de.wota.MyApp"> >> <level value=3D"DEBUG" /> >> <appender-ref ref=3D"console" /> >> </logger> >> >> </log4j:configuration> >> >> -- >> Kind regards >> Jens >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: courtneybowers@example.com >> For additional commands, e-mail: courtneybowers@example.com >> > --------------------------------------------------------------------- To unsubscribe, e-mail: courtneybowers@example.com For additional commands, e-mail: courtneybowers@example.com From log4j-user-returncourtneybowers@example.com Thu Feb 04 15:49:38 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 65995 invoked from network); 4 Feb 2010 15:49:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Feb 2010 15:49:38 -0000 Received: (qmail 30474 invoked by uid 500); 4 Feb 2010 15:49:37 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 30418 invoked by uid 500); 4 Feb 2010 15:49:37 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 30407 invoked by uid 99); 4 Feb 2010 15:49:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 15:49:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of courtneybowers@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO smtp.ergonomics.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 15:49:26 +0000 Received: from localhost (localhost [83.161.120.155]) by smtp.ergonomics.ch (Postfix) with ESMTP id 819102029F for <courtneybowers@example.com>; Thu, 4 Feb 2010 16:49:34 +0100 (CET) X-Virus-Scanned: Debian courtneybowers@example.com Received: from smtp.ergonomics.ch ([83.161.120.155]) by localhost (ergonomics.ch [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id oUNlXXOvNzXa for <courtneybowers@example.com>; Thu, 4 Feb 2010 16:49:22 +0100 (CET) Received: from mars.bahamas.ergo (mars.bahamas.ergo [83.161.120.155]) by smtp.ergonomics.ch (Postfix) with ESMTP id 5895420246 for <courtneybowers@example.com>; Thu, 4 Feb 2010 16:49:22 +0100 (CET) Received: from mars.bahamas.ergo ([83.161.120.155]) by mars.bahamas.ergo ([83.161.120.155]) with mapi; Thu, 4 Feb 2010 16:48:53 +0100 From: Bender Heri <courtneybowers@example.com> To: 'Log4J Users List' <courtneybowers@example.com> Date: Thu, 4 Feb 2010 16:48:53 +0100 Subject: AW: Problems with inheritance of com.foo... loggers Thread-Topic: Problems with inheritance of com.foo... loggers Thread-Index: Acqlp4L9jEETadnyQRur4aJ60MeeDwACQeyw Message-ID: <courtneybowers@example.com> References: <courtneybowers@example.com> <courtneybowers@example.com> In-Reply-To: <courtneybowers@example.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org There is one point more: You do not define a root logger in your config whi= ch has some benefits The root is the parent for all loggers which are not explicitely defined (e= .g. also for third party libraries like org.apache....). Typically you set the root logger level to WARN. And for the package/classe= s which you want to examine deeper you define a extra logger with desired l= ower level. If you want to have a lot of logger configurations which differ only in lev= el setting but have all the same appender, then you define the appender onl= y once in the root logger.=20 Only if you explicitely want to have one distinct logger to log to another = appender you define it in the respective logger definition and set the attr= ibute additivity=3D"false" (default is true). Heri=20 -----Urspr=FCngliche Nachricht----- Von: Jens Gruentjes [mailto:courtneybowers@example.com]=20 Gesendet: Donnerstag, 4. Februar 2010 15:36 An: courtneybowers@example.com Betreff: Re: Problems with inheritance of com.foo... loggers Hi Douglas, thanks for your answer which helped me save a lot of time. Your explanation= is evident but I did not realize that for myself. -- Kind regards Jens Zitat von "Douglas E Wegscheid" <courtneybowers@example.com>: > "de.wota.segmentation.Bar" will inherit from "de.wota.segmentation",=20 > "de.wota", and "de" but not "de.wota.MyApp". > > Change your configuration to set up logging for "de.wota" instead of=20 > "de.wota.MyApp". > > Douglas E Wegscheid > Lead Technical Analyst, Whirlpool Corporation > (802)829-8628 > > "A wrong note played hesitatingly is a wrong note. A wrong note played=20 > with conviction is interpretation." > > > > "Jens Gruentjes" <courtneybowers@example.com> wrote on 02/04/2010=20 > 02:57:10 > AM: > >> Hello to all readers, >> >> I am new to log4j and I encounter several problems which are maybe=20 >> caused by my limited understanding fo log4j. >> >> I have a simple setup with two classes (de.wota.MyApp and >> de.wota.segmentation.Bar) and an xml configuration file for log4j. I=20 >> thought that the logger defined in Bar.java inherits its level and=20 >> most of all its appender(s) from the logger defined in MyApp.java.=20 >> But despite reading the manuals and the list archives I always get=20 >> the following error when I execute MyApp: >> >> jens@jensen ~/Java/wota_rw $ java de.wota.MyApp >> log4j: reset attribute=3D "false". >> log4j: Threshold =3D"null". >> log4j: Retreiving an instance of org.apache.log4j.Logger. >> log4j: Setting [de.wota.MyApp] additivity to [true]. >> log4j: Level value for de.wota.MyApp is [DEBUG]. >> log4j: de.wota.MyApp level set to DEBUG >> log4j: Class name: [org.apache.log4j.ConsoleAppender] >> log4j: Setting property [target] to [System.out]. >> log4j: Setting property [threshold] to [INFO]. >> log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" >> log4j: Setting property [conversionPattern] to [%8r %p %c %x - %m%n]. >> log4j: Adding appender named [console] to category [de.wota.MyApp]. >> 0 INFO de.wota.MyApp - Entering application. >> log4j:WARN No appenders could be found for logger > (de.wota.segmentation.Bar). >> log4j:WARN Please initialize the log4j system properly. >> Parent is root >> 1 INFO de.wota.MyApp - Exiting application. >> jens@jensen ~/Java/wota_rw $ >> >> What I expected to see was the output from Bar.java which is missing=20 >> here. I wanted to know who is the parent of the logger in Bar.java is=20 >> and it turned out to be root. I thought that this should be the=20 >> logger from MyApp.java. Can someone tell me what I misunderstand? I=20 >> am a little confused. The code follows below. >> >> Thanks for your explanations and your help! >> >> >> This is MyApp.java: >> >> package de.wota; >> >> import org.apache.log4j.Logger; >> import org.apache.log4j.xml.DOMConfigurator; >> >> import de.wota.segmentation.Bar; >> >> public class MyApp { >> // Define a static logger variable so that it references the >> // Logger instance named "MyApp". >> static Logger logger =3D Logger.getLogger(MyApp.class); >> >> public static void main(String[] args) { >> >> // Set up an xml configuration that logs on the console. >> DOMConfigurator.configureAndWatch("config_log.xml"); >> >> logger.info("Entering application."); >> Bar bar =3D new Bar(); >> bar.doIt(); >> logger.info("Exiting application."); >> } >> } >> >> This is Bar.java: >> >> package de.wota.segmentation; >> >> import org.apache.log4j.Logger; >> >> public class Bar { >> static Logger logger =3D Logger.getLogger(Bar.class); >> >> public void doIt() { >> logger.debug("Did it again!"); >> System.out.println("Parent is "+logger.getParent().getName()); >> } >> >> } >> >> And finally config_log.xml >> >> <?xml version=3D"1.0" encoding=3D"UTF-8" ?> <!DOCTYPE log4j:configuratio= n=20 >> SYSTEM "log4j.dtd"> >> >> <log4j:configuration debug=3D"true" >> xmlns:log4j=3D"http://jakarta.apache.org/log4j/"> >> >> <appender name=3D"console" class=3D"org.apache.log4j.ConsoleAppender"= > >> <param name=3D"Target" value=3D"System.out"/> >> <param name=3D"threshold" value=3D"info" /> >> <layout class=3D"org.apache.log4j.PatternLayout"> >> <param name=3D"ConversionPattern" value=3D"%8r %p %c %x - %m%n"/> >> </layout> >> </appender> >> >> <logger name=3D"de.wota.MyApp"> >> <level value=3D"DEBUG" /> >> <appender-ref ref=3D"console" /> >> </logger> >> >> </log4j:configuration> >> >> -- >> Kind regards >> Jens >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: courtneybowers@example.com >> For additional commands, e-mail: courtneybowers@example.com >> > --------------------------------------------------------------------- To unsubscribe, e-mail: courtneybowers@example.com For additional commands, e-mail: courtneybowers@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: courtneybowers@example.com For additional commands, e-mail: courtneybowers@example.com From log4j-user-returncourtneybowers@example.com Thu Feb 04 16:56:39 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 87722 invoked from network); 4 Feb 2010 16:56:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Feb 2010 16:56:39 -0000 Received: (qmail 84226 invoked by uid 500); 4 Feb 2010 16:56:39 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 84166 invoked by uid 500); 4 Feb 2010 16:56:38 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 84155 invoked by uid 99); 4 Feb 2010 16:56:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 16:56:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of courtneybowers@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-bw0-f224.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 16:56:30 +0000 Received: by bwz24 with SMTP id 24so2244809bwz.29 for <courtneybowers@example.com>; Thu, 04 Feb 2010 08:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=bKTSOGxBmrEgWwgetJXLaNaIByJshH4xWMsXvDQCIp8=; b=GTQz38Bcaz7vxoaz4faUgjoZZJyIEyIXU506Jtw2EixicGz8elFu+BstwDocOj5C+R SvSKw2tLjVhBZj1cioer7JAV1/9Rmh3O7Eg7wn0SgKgUVqeAO9W71CCkmtEJ/lsaDC6W 0yEz8EyMSGs5+8yvmvm2ON3naqGYg7OaX1pZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XiCiUuE6VBTtO61+FK8X22j3k/kFuhnpI6Uv8vp7ogHdvjElKj9ejBbOoOgLvU139b p9f4oeaVRKzliPh2zxDS/z1BiUvpVH4JuiKs4TYdLurFs52HdCNAaUqC80/c/72ssOf8 VkattU/iYAGX195N3s/RShGPV5f8aROQh0Hys= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id o15mr814136bkd.102.1265302570459; Thu, 04 Feb 2010 08:56:10 -0800 (PST) Date: Thu, 4 Feb 2010 17:56:10 +0100 Message-ID: <courtneybowers@example.com> Subject: Possible to get unambiguous timestamp with v1.2.15 ? From: =?UTF-8?Q?David_Bala=C5=BEic?= <courtneybowers@example.com> To: courtneybowers@example.com Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi! I am using log4j 1.2.15 and noticed that the timestamps in logs have no TZ information. They are created by config like this: log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d DATABASE->%-5p [%c] - %m%n Is there a way to get either: - same format, but with TZ info (offset), or - same format, but time in UTC without switching to other or additional software? I think I can get the first by using a pattern like %d{yyyy-MM-dd HH:mm:ss,SSS Z} that is using the "Z" pattern letter. That would then use java.text.SimpleDateFormat to do the formatting, right? The javadocs are a bit vague: "The date format specifier admits the same syntax as the time pattern string of the SimpleDateFormat." (source: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html) It says the same syntax is used, but it is unclear it actually SimpleDateFormat is used or a different, compatible implementation. If it is SimpleDateFormat used, how bad is the performance hit that is mentioned there? For the second option, I could set the system time zone to UTC, or maybe the applications* zone? Any comments? Better ideas? * - it is actually an application server, tomcat, JBoss or similar, not set in stone yet I also see in the API doc, that ISO8601DateFormat has a constructor that takes a TimeZone argument. Can that be used? Ideally just by changing the config file? Regards, David --------------------------------------------------------------------- To unsubscribe, e-mail: courtneybowers@example.com For additional commands, e-mail: courtneybowers@example.com From log4j-user-returncourtneybowers@example.com Fri Feb 05 02:35:16 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 17313 invoked from network); 5 Feb 2010 02:35:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Feb 2010 02:35:16 -0000 Received: (qmail 9762 invoked by uid 500); 5 Feb 2010 02:35:15 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 9652 invoked by uid 500); 5 Feb 2010 02:35:15 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 9641 invoked by uid 99); 5 Feb 2010 02:35:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 02:35:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of courtneybowers@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-iw0-f179.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 02:35:07 +0000 Received: by iwn9 with SMTP id 9so939854iwn.6 for <courtneybowers@example.com>; Thu, 04 Feb 2010 18:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=u8UFTP9uPTzBKEmBCYNtcWa0Euv8QS8NCfRNsaaywkI=; b=szKIe6L109bRcajEvGzhuSNgrPbsWr+Rhr/xR84ob9eF0bX0OGdweM2XEWhGIM9gDv 2MXsjdohTsMH1WcNvw+5VKO1NRbUX+86LH38Grf67bv9Lf4otwKjNNIzr4VvzO1iXRMR f12+L60mYymJm1Vyfd1YeM+Koyha07qpdLcP8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=NdeAQMVvrIZ0E19cN1fSnfsuvaPLxOd0Zv87SMLO2x2UrwWk8J7UlqWbuq+d7hETiF LbzBod3LtLMIzxqlA7WprjEzvZRW6Scgrll3lzmfQRVuL/EjlulyGKpAAwBINVoVXbtk 6M/MEG75a0pNjXEB6w1wQsBhll8lJUcMXhdwY= Received: by 83.161.120.155 with SMTP id d21mr728067ibx.61.1265337278268; Thu, 04 Feb 2010 18:34:38 -0800 (PST) Received: from ?83.161.120.155? (70-139-215-122.lightspeed.cyprtx.sbcglobal.net [83.161.120.155]) by mx.google.com with ESMTPS id 22sm592032iwn.8.283.161.120.155.34.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Feb 2010 18:34:36 -0800 (PST) Sender: Curt Arnold <courtneybowers@example.com> Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: Possible to get unambiguous timestamp with v1.2.15 ? From: Curt Arnold <courtneybowers@example.com> In-Reply-To: <courtneybowers@example.com> Date: Thu, 4 Feb 2010 20:34:33 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <courtneybowers@example.com> References: <courtneybowers@example.com> To: "Log4J Users List" <courtneybowers@example.com> X-Mailer: Apple Mail (2.1077) Check out the EnhancedPatternLayout in the log4j extras companion, = http://logging.apache.org/log4j/companions/extras/. It is an enhanced = version of PatternLayout that is usage-compatible. Basically, add = log4j-extras.jar to your path, change the Layout class to = EnhancedPatternLayout and use a pattern like %d{HH:mm:ss}{GMT} or = whatever any other recognized timezone in the second set of braces. Performance of SimpleDateFormat is a significant issue. PatternLayout = has an independent implementation, EnhancedPatternLayout wraps a cache = around SimpleDateFormat to avoid calling it repeatedly for timestamps = within an interval. = http://logging.apache.org/log4j/companions/extras/apidocs/org/apache/log4j= /EnhancedPatternLayout.html --------------------------------------------------------------------- To unsubscribe, e-mail: courtneybowers@example.com For additional commands, e-mail: courtneybowers@example.com From log4j-user-returncourtneybowers@example.com Fri Feb 05 08:08:04 2010 Return-Path: <log4j-user-returncourtneybowers@example.com> Delivered-To: courtneybowers@example.com Received: (qmail 8099 invoked from network); 5 Feb 2010 08:08:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Feb 2010 08:08:04 -0000 Received: (qmail 34439 invoked by uid 500); 5 Feb 2010 08:08:03 -0000 Delivered-To: courtneybowers@example.com Received: (qmail 34334 invoked by uid 500); 5 Feb 2010 08:08:02 -0000 Mailing-List: contact courtneybowers@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:courtneybowers@example.com> List-Help: <mailto:courtneybowers@example.com> List-Post: <mailto:courtneybowers@example.com> List-Id: "Log4J Users List" <log4j-user.logging.apache.org> Reply-To: "Log4J Users List" <courtneybowers@example.com> Delivered-To: mailing list courtneybowers@example.com Received: (qmail 34323 invoked by uid 99); 5 Feb 2010 08:08:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 08:08:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass
{'source': 'Apache Software Foundation Public Mail Archives'}