Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E8E3107FA for ; Fri, 30 May 2014 09:16:15 +0000 (UTC) Received: (qmail 5155 invoked by uid 500); 30 May 2014 09:16:14 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 5117 invoked by uid 500); 30 May 2014 09:16:14 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 5107 invoked by uid 99); 30 May 2014 09:16:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 09:16:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ushaladkani@gmail.com designates 209.85.128.175 as permitted sender) Received: from [209.85.128.175] (HELO mail-ve0-f175.google.com) (209.85.128.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 May 2014 09:16:09 +0000 Received: by mail-ve0-f175.google.com with SMTP id jw12so1770674veb.6 for ; Fri, 30 May 2014 02:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iBGKQkXZTfNWd3+PWG9JO+akX+sWKEJ/4tTmlu969iE=; b=cpivLjLJ//Z+DFjtas6kx9zsocSDrU4eakA/S4opwrEUe0smIEKdMZJt4efp35yFL5 /G+/MY1xnq+USXYU9TttfUi9ufQvQpUjCeNP+s4TlajXrjy+bXwB38chOzAT+dA8CCre F+44Sy8qjgllNsP+xGV57gdziQ+vDCTrX/ZPXI9PsZX1t0M/7T5iQ2Qb+VWTvNnxxkZ0 RIQ4032dhux7Evo6NcZhzNQHkIh7sDnipe8dVoX6PeQA1wLRSfSDJL3TcaAcRyeOhKua YwIaZ13VmTPYmDpj1MuvICqDexTvSEZ5GOYrCRBucgWI+gvi81SbvJFPhQPdR1qEBhjs 3qOg== MIME-Version: 1.0 X-Received: by 10.58.29.16 with SMTP id f16mr12472881veh.23.1401441345911; Fri, 30 May 2014 02:15:45 -0700 (PDT) Received: by 10.221.13.70 with HTTP; Fri, 30 May 2014 02:15:45 -0700 (PDT) In-Reply-To: References: Date: Fri, 30 May 2014 14:45:45 +0530 Message-ID: Subject: Re: Struts 1 Logging From: Usha Ladkani To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=047d7b6dd08498bf2004fa9a7dca X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6dd08498bf2004fa9a7dca Content-Type: text/plain; charset=UTF-8 Hello Paul. Now I have configured log4j-1.2.13.jar. Below is my log4j.properties file content. log4j.rootLogger=DEBUG, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=usha.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=[%d{MM/dd/yy HH:mm:ss}] source=%c thread=[%t] %m%n I get log file names usha.log created m But it doesnt has any struts related logging after I perform the action. Just the below content is logged. [05/30/14 09:14:21] source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction thread=[WebContainer : 3] Logging initialized. [05/30/14 09:14:21] source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction thread=[WebContainer : 3] Log4jProperties: C:\Program Files\ibm\bcghub-distrib\wasND\Profiles\bcgprofile\installedApps\wpgCell\BCGConsole.ear\console.war\WEB-INF\lib\log4j.properties Which are logged by my action class. Could you please help if I am missing something. Thanks Usha On Fri, May 30, 2014 at 9:16 AM, Paul Benedict wrote: > Okay, but Struts 1 uses Apache Commons Logging. That means you'll need to > configure that or use Apache Log4j 1.x configuration which is also > supported. > > > Cheers, > Paul > > > On Thu, May 29, 2014 at 10:38 PM, Usha Ladkani > wrote: > > > Hello Paul. > > > > We are using java.util.logging.Logger in our application. > > > > Regards > > Usha > > > > > > On Fri, May 30, 2014 at 9:02 AM, Paul Benedict > > wrote: > > > > > Usha, what logging framework are you using? > > > > > > > > > Cheers, > > > Paul > > > > > > > > > On Thu, May 29, 2014 at 10:28 PM, Usha Ladkani > > > wrote: > > > > > > > Hello , > > > > > > > > We are using Struts 1 , Can someone tell me how can I enable Struts > > logs > > > in > > > > debug mode, Basically I am looking for statements as below - > > > > > > > > BeanUtils 1 org.apache.commons.beanutils.BeanUtils populate > > > > BeanUtils.populate( > > > > > > > > Thanks and regards > > > > > > > > > > --047d7b6dd08498bf2004fa9a7dca--