All entries for Wednesday 23 March 2005

March 23, 2005

Exception logging with log4j

When trying to diagnose a problem with some software earlier today, I discovered this little annoyance.
try {
do some stuff
} catch(Exception ex) {
logger.error(ex);
}

This will only log a brief message and not the whole stacktrace (at least in my case of an NPE, giving you no information as to where the exception was occuring.

However…

try {
do some stuff
} catch(Exception ex) {
logger.error("Failed to do some stuff",ex);
}
This will dump out the whole stack trace. How odd.

Westwood officially better than main campus!

In the second installment of the biennial Westwood vs Main Campus IT Services Charity Football Match, Westwood had their revenge.

It was a 6 – 3 thriller that saw Westwood come from 3 – 1 down to get 5 in a row to win in style. Yay for us!

Bring on 2007 :)


March 2005

Mo Tu We Th Fr Sa Su
Feb |  Today  | Apr
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31         

Tags

Search this blog

Most recent comments

  • One thing that was glossed over is that if you use Spring, there is a filter you can put in your XML… by Mathew Mannion on this entry
  • You are my hero. by Mathew Mannion on this entry
  • And may all your chickens come home to roost – in a nice fluffy organic, non–supermarket farmed kind… by Julie Moreton on this entry
  • Good luck I hope that you enjoy the new job! by on this entry
  • Good luck Kieran. :) by on this entry

Galleries

Not signed in
Sign in

Powered by BlogBuilder
© MMXXII