The Artima Developer Community
Sponsored Link

Java Buzz Forum
How to create a new log file for each time the application runs?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Veera Sundar

Posts: 14
Nickname: veerak
Registered: Jul, 2008

Veera Sundar is a Java developer, working as technology analyst in India.
How to create a new log file for each time the application runs? Posted: Aug 19, 2009 1:22 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Veera Sundar.
Original Post: How to create a new log file for each time the application runs?
Feed Title: Veerasundar » Java
Feed URL: http://feeds.feedburner.com/veerasundar/java
Feed Description: java developer blog
Latest Java Buzz Posts
Latest Java Buzz Posts by Veera Sundar
Latest Posts From Veerasundar » Java

Advertisement
Recently I got a question from my blog reader Kuruba, regarding log4j logging. Kuruba is having a batch program with Log4j logging and he wants to send the log messages to a new log file each time his batch runs. This can be achieved by extending Log4j’s FileAppender, which is used for logging to a file, and adding our own customization to the file appender. Below I’m explaining how to do it. Extending FileAppender to create a new log file for ...

Read: How to create a new log file for each time the application runs?

Topic: Video software firm On2 vows to fight lawsuits challenging Google acquisition Previous Topic   Next Topic Topic: What's on your jealous mind? Talking with an old flame on Facebook can get you in trouble

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use