Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Java Logging files getting over-written despite settings.

Thread view: 
andoni.oconchubhair@fmr.com - 16 Feb 2007 13:25 GMT
Hi,

I have set up Java 1.4 logging and added to my logging config file the
entry:

java.util.logging.FileHandler.append = TRUE

This doesn't appear to work though as each time I run the program I
get a new file. I have looked at the source-code and there is no case-
sensitivity on the "true".

Here's the contents of my config file, can someone please tell me if
I've missed something or if there's a good site that details these
settings?

handlers= java.util.logging.FileHandler,
java.util.logging.ConsoleHandler

java.util.logging.FileHandler.pattern = C:/logs/fims_archiver%g.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.level = INFO
java.util.logging.FileHandler.append = TRUE
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter =
java.util.logging.SimpleFormatter

java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter

Thanks:
Andoni.
andoni.oconchubhair@fmr.com - 16 Feb 2007 15:06 GMT
On Feb 16, 1:25 pm, andoni.oconchubh...@fmr.com wrote:

> java.util.logging.FileHandler.count = 1

Never even noticed this value! Apologies for having wasted anyone's
time. I only hope this posting helps someone. I've upped this to 100
and now it is maintaining that many log files.

Thanks again,
Andoni.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.