• Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j plain text Configuration File  RSS feed

 
Durand Grimmett
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have the steps to configure log4j with a plain text config file?i.e....an example config file, and/or which directory to place my log4j.properties file in so that it will be read properly. Im having major issues with getting started logging, any help will be greatly appreciated...
[ June 15, 2004: Message edited by: Durand Grimmett ]
 
Wai Hung
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what I put in my properties file

log4j.appender.trcFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.trcFile.File=C:/logs/TraceFile.log
log4j.appender.trcFile.Append=true
log4j.appender.trcFile.DatePattern='.'ddMMMyy

it creates a log file call 'TraceFile.log' and it will be renamed to, say,
TraceFile.log.03Jun04 when the date is changed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!