Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-90

LogUtil should include a 'safe' log method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • jtsk_2.1
    • None
    • com_sun_jini_logging
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramirjf Juan Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: