Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: What happens when format gets a wrong argument Date: Fri, 19 Aug 2016 01:25:24 +0200 Organization: Decebal Computing Lines: 17 Message-ID: <8760qxk6cb.fsf@Equus.decebal.nl> References: <87eg5lkd05.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="23110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18i9QNSiNVDzZAqUMg1acnVdqjwyNcz0kw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:8yZZVJ5caX4gLJCV8U3R1xWIZBU= sha1:1QTDRNf+u7WcgHOmXQr2bau3Wko= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.programmer:35401 On Thursday 18 Aug 2016 23:48 CEST, Stefan Ram wrote: >> Is there a way to get things automatically logged? > > When »java.exe« is used under Windows and the process is > terminated by an uncaught exception, this is usually > reported to the console, but the report can also be > redirected to a file. Because the function is run in a ScheduledExecutorService the process is not terminated and there is no report either. That makes this type of error hard to find. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof