• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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"/>
</layout>
</appender>
"

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]
 
Evildoers! Eat my justice! And this tiny ad's justice too!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic