Reputation: 117
I am using google app engine and I am having trouble with log4j. Basically I am testing my app and the exceptions are being detected by the dashboard, but not log4j. I am using the following:
catch (Exception e) {
logger.warn("Exception Alert", e);
e.printStackTrace();
}
Is this the correct way to catch exceptions using Log4j? It works for some exceptions now. But not all. I want to catch a NumberFormatException (empty string) but this is isn't working.
Upvotes: 3
Views: 348