aspose file tools*
The moose likes Tomcat and the fly likes Repeated  log messages log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Repeated  log messages log4j" Watch "Repeated  log messages log4j" New topic
Author

Repeated log messages log4j

srsrikkanth rajendran
Greenhorn

Joined: May 08, 2008
Posts: 2
I am using log4j in my struts application.
The messages get repeated muliple to=imes.
I am not sure whats the problem. Kindly advise.

I instantiate my logger as
logger = Logger.getLogger("WSO");

my properties file is as follows:
# Set root logger level to DEBUG and its only appender to CONSOLE1.
log4j.rootCategory=DEBUG, CONSOLE1,ROLLING1

# CONSOLE1
log4j.appender.CONSOLE1=org.apache.log4j.ConsoleAppender

# CONSOLE1 uses TTCC (Time, Thread Category, Context) Layout
# Levels used to be called Categories in older versions of log4j.
log4j.appender.CONSOLE1.layout=org.apache.log4j.TTCCLayout

log4j.appender.ROLLING1=org.apache.log4j.RollingFileAppender
log4j.appender.ROLLING1.File=wso.log
log4j.appender.ROLLING1.MaxFileSize=1000KB
log4j.appender.ROLLING1.MaxBackupIndex=3
log4j.appender.ROLLING1.layout=org.apache.log4j.TTCCLayout
Kashif Memon
Ranch Hand

Joined: Jul 12, 2003
Posts: 35
I am also having same problem, any suggestion?

I am working on struts portlet and deploying on IBM WebSphere Portal 5.1

Regards,
Kashif
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Repeated log messages log4j