logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Park <simon_park_m...@yahoo.co.uk>
Subject Re: Adding a Header to Log4j with DailyRollingAppender
Date Thu, 11 Feb 2010 15:27:32 GMT
The TimeAndSizeRollingAppender behaves very similarly to the DailyRollingAppender and makes
it easy to do just what you need by configuring the FileRollEventMessage property.  The caveat
is that its not part of the main Log4J code.  See my site at http://www.simonsite.org.uk for
Javadocs and download links.

HTH,

Simon




________________________________
From: c0de_ek0 <fadi.elkhaja@gmail.com>
To: log4j-user@logging.apache.org
Sent: Thu, 11 February, 2010 15:08:47
Subject: Adding a Header to Log4j with DailyRollingAppender


Good Morning,
We would like to add a disclaimer header to a daily generated log4j log
file. Is there a way to do that thought the log4j properties file only, thus
without code changes and extending org.apache.log4j.PatternLayout ?


-- 
View this message in context: http://old.nabble.com/Adding-a-Header-to-Log4j-with-DailyRollingAppender-tp27547037p27547037.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message