struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Usha Ladkani <ushaladk...@gmail.com>
Subject Re: Struts 1 Logging
Date Fri, 30 May 2014 09:15:45 GMT
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 <pbenedict@apache.org> 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 <ushaladkani@gmail.com>
> 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 <pbenedict@apache.org>
> > wrote:
> >
> > > Usha, what logging framework are you using?
> > >
> > >
> > > Cheers,
> > > Paul
> > >
> > >
> > > On Thu, May 29, 2014 at 10:28 PM, Usha Ladkani <ushaladkani@gmail.com>
> > > 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
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message