Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-6715480

LogViewer: log messages with "custom" Levels are all processed as "FINE" (Debug Info) messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jt4.2
    • jt2.2
    • tools
    • b07
    • x86
    • windows_xp
    • Verified

      Javatest 4.1.4 (should be reproducible since jt4.0)

      - write custom testsuite that would use TestSuite's loggers that forwards log messages to LogViewer (View/Logs) window. See com.sun.javatest.TestSuite#createLog(WorkDirectory, String, String)
      - create logger and log there several messages with different Levels: LEVEL.SEVERE, LEVEL.WARNING, LEVEL.INFO, LEVEL.FINE
      - run code. Open Log Viewer. Check that all messages are correctly mapped to 4 available "filtering" levels.
      - now log some more messages with "custom" levels: LEVEL.SEVERE.intValue() - 10, LEVEL.WARNING.intValue() - 10, etc.
      - run code. Open Log Viewer. You'll see that all these "custom" levels became "Debug Info" - lowest available level. While in reality (SEVERE.intValue() - 10) should be logged as "WARNING".

      See javadocs for java.util.logging.Level class and logging samples to realize proper behavior.

            sborodinsunw Sergey Borodin (Inactive)
            kromanovorcl Konstantin Romanovskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: