When you log exceptions, does it get stored somewhere in a file? If so, how do I find this file? If not, why do people bother logging exceptions? I saw this example on the net:
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
df.setLenient(false);
try {
//
// Try to parsing a wrong date.
//
Date date = df.parse("12/30/1990");
System.out.println("Date = " + date);
} catch (ParseException e) {
//
// Create a Level.SEVERE logging message
//
if (logger.isLoggable(Level.SEVERE)) {
logger.log(Level.SEVERE, "Error parsing date", e);
}
}
When I run it, I see the exception printed on my netbeans console, and I have to wonder, is that it, or is there more to this (there has to be)?
Thanks