• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Log4j problem: What configuration is needed to make logging function OK ?

Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Forum members:

I have just installed this application for testing.
However, I do not find anything in the log file although I did configure log4j.xml to write to a suitable file:
<appender name="jforum.log" class="org.apache.log4j.RollingFileAppender">
<param name="MaxFileSize" value="1024KB"/>
<param name="MaxBackupIndex" value="4"/>
<param name="File" value="./log/jforum.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%-c{1}] - %m%n"/>

In addition, the console log WARNS:
log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog)
log4j:WARN Please initialize the log4j system properly.

What configuration is needed to make logging fully functional ?
[originally posted on jforum.net by barris]
    Bookmark Topic Watch Topic
  • New Topic