Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 75401 invoked from network); 9 Aug 2010 12:54:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 12:54:16 -0000 Received: (qmail 88485 invoked by uid 500); 9 Aug 2010 12:54:15 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 87979 invoked by uid 500); 9 Aug 2010 12:54:12 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 87971 invoked by uid 99); 9 Aug 2010 12:54:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 12:54:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [12.160.87.73] (HELO mx1.nexweb.org) (12.160.87.73) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 12:54:00 +0000 Received: from msw1.nexweb.us ([164.226.177.54]) by mx1.nexweb.org (8.14.1/8.14.1) with ESMTP id o79CrXhp016897 for ; Mon, 9 Aug 2010 08:53:34 -0400 Received: from ngate1.nexweb.us (unverified [164.226.177.14]) by msw1.nexweb.us (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Mon, 9 Aug 2010 08:53:13 -0400 To: user@commons.apache.org MIME-Version: 1.0 Subject: [Logging] : Can commons.logging be used without log4j X-KeepSent: BD9BBD6E:C2AE0ADF-8525777A:00462859; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5 SHF336 August 12, 2009 Message-ID: From: Jasmin Mehta Date: Mon, 9 Aug 2010 08:53:13 -0400 X-MIMETrack: Serialize by Router on NGATE1/HQ/NEXNET(Release 8.5|December 05, 2008) at 08/09/2010 08:53:13 AM, Serialize complete at 08/09/2010 08:53:13 AM Content-Type: multipart/alternative; boundary="=_alternative 0046CB9A8525777A_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0046CB9A8525777A_= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using OC4J 10.1.3.5.0 as my application server. Where I have more than one web applications using the same instance of OC4J. I have configured shared libraries and importing thru those web application. My apache commons is using log4j. The log4j has limitation that if its used as a shared library then it can initiate only one configuration. So my all we applications which shares the same instance are populating the logs into only one log file (the web app which deployed first in order), rather than individual / separate log files configured in the path of each of the application's log4j.properties. So now, I would like to get rid of log4j usage and use only apache commons logging. But again apache commons logging won't print the logs without log4j. Is there any way I can avoid this dependency? May be commons-logging.properties ? How do I configure for log path etc? My current log4j.properties: log4j.rootCategory=DEBUG,stdout,standardFile log4j.configCheckDelay=900000 ################################## CONSOLE ######################################## log4j.appender.OJDL=oracle.core.ojdl.log4j.OracleAppender log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}] %-5p [%c{1}] %m%n log4j.defaultInitOverride=true ################################## STANDARD FILE ################################## log4j.appender.standardFile=org.apache.log4j.RollingFileAppender log4j.appender.standardFile.File=D:\\VGCC\\log\\vgcc.log log4j.appender.standardFile.MaxFileSize=1000KB log4j.appender.standardFile.MaxBackupIndex=50 log4j.appender.standardFile.layout=org.apache.log4j.PatternLayout log4j.appender.standardFile.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}] %-5p [%c{1}] %m%n Thanks Jasmin ****************************************************************************** This email and any files transmitted with it are intended solely for the use of the individual or agency to whom they are addressed. If you have received this email in error please notify the Navy Exchange Service Command e-mail administrator. This footnote also confirms that this email message has been scanned for the presence of computer viruses. Thank You! ****************************************************************************** --=_alternative 0046CB9A8525777A_=--