This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes question on log4j and eclipse 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 » Other Open Source Projects
Bookmark "question on log4j and eclipse" Watch "question on log4j and eclipse" New topic
Author

question on log4j and eclipse

David Liu
Greenhorn

Joined: Apr 16, 2002
Posts: 24
I follow the example in the book "eclipse in action"
but in the console the following displays
"log4j:WARN No appenders could be found for logger (org.eclipseguide.persistence.FilePersistenceServices).
log4j:WARN Please initialize the log4j system properly."
and the following is the log4j.properties
"# Set root logger to DEBUG and assign two appenders
log4j.rootLogger=DEBUG, myConsole, myLogFile
# Console appender
log4j.appender.myConsole=org.apache.log4j.ConsoleAppender
log4j.appender.myConsole.layout=org.apache.log4j.PatternLayout
log4j.appender.myConsole.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
# Rolling file appender
log4j.appender.myLogFile=org.apache.log4j.RollingFileAppender
log4j.appender.myLogFile.File=mylog.log
log4j.appender.myLogFile.MaxFileSize=100KB
log4j.appender.myLogFile.MaxBackupIndex=2
log4j.appender.myLogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.myLogFile.layout.ConversionPattern= %d{MMM d, yyyy hh:mm:ss a}: %p [%t] %m%n
log4j.appender.myLogFile.threshold=DEBUG"
what's wrong???
plz do me a favor
thanks


It's better burn out than to fade away.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
It looks like someone else is having similar problems - here on Manning's Meet the Author forum.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
Don't get me started about those stupid light bulbs.
 
subject: question on log4j and eclipse