• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

log4j plain text Configuration File

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic