Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35406
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: What happens when format gets a wrong argument |
| Date | 2016-08-19 07:23 +0200 |
| Organization | Decebal Computing |
| Message-ID | <871t1ljpqz.fsf@Equus.decebal.nl> (permalink) |
| References | <87eg5lkd05.fsf@Equus.decebal.nl> <np5go0$bik$1@gioia.aioe.org> |
On Friday 19 Aug 2016 01:35 CEST, Arne Vajhøj wrote:
> On 8/18/2016 5:01 PM, Cecil Westerhof wrote:
>> Is there a way to get things automatically logged?
>
> You can always catch and log explicit in the executing
> code.
That is what I now do:
ses.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
try {
saveMemoryLine();
} catch (Exception e) {
logMessage(e.getMessage());
}
}
}, 1, 1, TimeUnit.MINUTES);
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
What happens when format gets a wrong argument Cecil Westerhof <Cecil@decebal.nl> - 2016-08-18 23:01 +0200
Re: What happens when format gets a wrong argument Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-08-18 17:31 -0400
Re: What happens when format gets a wrong argument Arne Vajhøj <arne@vajhoej.dk> - 2016-08-18 19:21 -0400
Re: What happens when format gets a wrong argument Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-08-19 08:22 -0400
Re: What happens when format gets a wrong argument Gene Wirchenko <genew@telus.net> - 2016-08-19 10:40 -0700
Re: What happens when format gets a wrong argument Arne Vajhøj <arne@vajhoej.dk> - 2016-08-19 20:19 -0400
Re: What happens when format gets a wrong argument Cecil Westerhof <Cecil@decebal.nl> - 2016-08-19 01:25 +0200
Re: What happens when format gets a wrong argument Arne Vajhøj <arne@vajhoej.dk> - 2016-08-18 19:31 -0400
Re: What happens when format gets a wrong argument Arne Vajhøj <arne@vajhoej.dk> - 2016-08-18 19:35 -0400
Re: What happens when format gets a wrong argument Cecil Westerhof <Cecil@decebal.nl> - 2016-08-19 07:23 +0200
csiph-web