Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

log4j

 
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Attractive, successful people love this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!