File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes log4j  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "log4j  " Watch "log4j  " New topic
Author

log4j

MInu
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
i am using log4j in linux platform.
i hav placed log4j.jar in the classpath.

while restarting tomcat i got this error.

log4j:WARN No appenders could be found for logger (de.jangroth.MobileMusicSync.TriviaTest).log4j:WARN Please initialize the log4j system properly.


my configuration file in WEB-INF/classes is:

log4j.rootCategory=INFO, dest
#specify the destination file
log4j.appender.dest=org.apache.log4j.RollingFileAppender
log4j.appender.dest.File=C:/logmessages
# Control the maximum log file size
log4j.appender.dest.MaxFileSize=1MB
# Archive log files (one backup file here)
log4j.appender.dest.MaxBackupIndex=1

#--set layout
log4j.appender.dest.layout=org.apache.log4j.PatternLayout
log4j.appender.dest.layout.ConversionPattern=%-5p [ %d : Caller - %C : Method - %M ] : %m%n

help me to solve this issue.


God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
 
 
subject: log4j
 
Threads others viewed
Help! I am getting strange and unusual Eclipse Warnings
error in log4j.properties
Unable to set classpath for log4j
Log4j in a web application
remove log4j appender from an API
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture