Forums Register Login

log4j plain text Configuration File

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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.
Everybody's invited. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 910 times.
Similar Threads
Turning off hibernate console messages
Log message is not diplaying in my project using struts framework
csv file problem
how to test HibernateDAO????
B&S Parsing of Data file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:39:36.