Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
jtsk_2.1
-
None
-
None
-
6307070
Description
Bugtraq ID [6307070|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6307070
From John McClain:
/**
- Logs an exception. Guaranteed not to throw anything.
*/
public static void log(Logger logger,
Leve l level,
String msg,
Throwable thrown)
{
try { logger.log(level, msg, thrown); }catch (Throwable t)
{ // Don't make it worse }}
A safe version of logThrow (or maybe modifying logThrow itself?) could also be useful for code that is currently using the logThrow method.