Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Novice Newsgroups: comp.lang.java.programmer Subject: Logging problem Date: Thu, 8 Mar 2012 19:38:04 +0000 (UTC) Organization: Your Company Lines: 26 Message-ID: NNTP-Posting-Host: aorhoX7wqL+zg222N4gRzA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: Xnews/5.04.25 X-Antivirus-Status: Clean X-Notice: Filtered by postfilter v. 0.8.2 X-Antivirus: avast! (VPS 120308-0, 2012-03-08), Outbound message Xref: csiph.com comp.lang.java.programmer:12773 I've suddenly started having an odd problem with respect to my logging and would appreciate a hint or tip to help me sort it out. For some reason I can't figure out, the last line of the log, which simply says: is not being written. When I try to open the log file, I see a companion file with it that appears to be a lock. (If the log file is Foo.log.xml, the companion file is Foo.log.xml.lck and the companion file's size is 0.) If I delete the lock file, I can open the log file and it is missing the final tag. Now, I know that the final tag is written within XMLFormatter in a simple method called getTail(). What I can't figure out is why getTail() isn't being invoked any more. I don't know how it was being invoked before - I certainly never call it in my code - but it was being invoked because that last tag was in the file. Now, suddenly, it's not. I'm trying to figure out what I need to do to make getTail() execute again "automagically" the way it used to. Unfortunately, I don't know how to get past this on my own and am not sure where to look. -- Novice