Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6189

Tests: Configure JUL logging based on VERBOSE flag

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: general/test
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I propose that LuceneTestCase check if VERBOSE is false, and if so then do this: Logger.getLogger("org.apache.lucene").setLevel(Level.SEVERE).

      This will allow test classes to grab a logger and log to it at appropriate levels without having to guard each log line with if (VERBOSE) ...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dsmiley David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: