aspose file tools*
The moose likes Websphere and the fly likes Log4j Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Log4j Problem" Watch "Log4j Problem" New topic
Author

Log4j Problem

jandhyala sastry
Greenhorn

Joined: Apr 28, 2004
Posts: 9
my logger.info statements from my classes are logged in app.log as well as System.out (Websphere)
where as i am expecting it to see only in app.log ?

Is thereanything i am missing here !!!


I am loading log4j. properties using the following line in one of my classes ...

PropertyConfigurator.configure(/usr/log/log4j.properties);

Log4j.properties

log4j.rootLogger=ERROR

# Specify where to log by packages.
log4j.logger.com.abc.example=INFO,dest1

log4j.appender.dest1=org.apache.log4j.RollingFileAppender
log4j.appender.dest1.File=app.log
log4j.appender.dest1.MaxFileSize=10000KB
log4j.appender.dest1.MaxBackupIndex=30
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout


#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Target=System.out
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.sdtout.Threshold=ERROR


SCJP, SCWCD, SCBCD<br /> <br />Thanks in advance!<br />Jandhyala Sastry.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4j Problem