The Artima Developer Community
Sponsored Link

Java Answers Forum
Q about expected behavior of FileHandler

1 reply on 1 page. Most recent reply: Jul 25, 2006 10:49 AM by Paul Reiners

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 1 reply on 1 page
Paul Reiners

Posts: 8
Nickname: reiners
Registered: Mar, 2003

Q about expected behavior of FileHandler Posted: Jul 25, 2006 9:55 AM
Reply to this message Reply
Advertisement
Suppose a Java application uses a rotating set of files that rotate after reaching a specified size limit. Now suppose you stop and then start this application back up again, using the same logging settings. Is java.util.logging.FileHandler supposed to create a new file on restart or is it supposed to use the existing one (appending to it) until the size is met?


Paul Reiners

Posts: 8
Nickname: reiners
Registered: Mar, 2003

Re: Q about expected behavior of FileHandler Posted: Jul 25, 2006 10:49 AM
Reply to this message Reply
Never mind. I found that there is an option to specify appending:

"java.util.logging.FileHandler.append specifies whether the FileHandler should append onto any existing files (defaults to false)."

That's what I wanted to know.

Flat View: This topic has 1 reply on 1 page
Topic: help for Text to Speech synthesizer!! Previous Topic   Next Topic Topic: Java 1.3.1 problem with  ImageIcon

Sponsored Links



Google
  Web Artima.com   

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