Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 09 Mar 2012 08:27:38 -0600 Date: Fri, 09 Mar 2012 06:27:35 -0800 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Logging problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <-sWdnWke8NDHjsfSnZ2dnUVZ_uWdnZ2d@earthlink.com> Lines: 20 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.206.198 X-Trace: sv3-DnqwnVQW/APtoDWhpf75d6lrRG9SPBKvGL1kzB1CJ3OhlWlvWI5Gv56GtIpkAKSeq/tQs/cG4T77ZBv!YdKJiefuksbyTg1z+dbT94nlXVY4u3v1iFZuhjSBYJRN6TrZftSIhqqqKRRgcCmHiQpLi+pCm0ad!fjDM1ZKRMaLVzYApabBzM3vTs0S2bWdIcJVEOpRrQKm9Oco= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2254 Xref: csiph.com comp.lang.java.programmer:12798 On 3/8/2012 9:36 PM, Novice wrote: ... > It would be very helpful if someone could explain what would happen in a > real-world production situation where a long-running batch program or a > constantly-running online program started writing error messages to the > log. What will operators do to be able to read the log? I'm guessing they > force it to close early and then start a new file or they have a tool > that will read the log file correctly even without the final tag. > I'm not an expert on production systems, but all the real-world programs I've seen that used logging wrote the log to a line-by-line text file. I've only used XML output in situations in which the output would not be useful unless the program, or at least the transaction or phase producing the file, completed successfully, closing its output files in the process. A log is the opposite of that - it is most useful when the program crashes horribly in the middle of its work. Patricia