Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-258

IllegalStateException when logging to Level.ALL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.6.x
    • Fix Version/s: None
    • Component/s: log4j-over-slf4j
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: PC

      Description

      We are trying to migrate from log4j to slf4j. During the process we use the log4j-over-slf4j bridge. In this bridge following error occurs:

      If an entry is logged with priotory Level.ALL,
      logger.log( Level.ALL, "log entry to all" );,
      the follwing exception is thrown:

      Exception in thread "Thread-6" java.lang.IllegalStateException: Unknown Priority ALL
      at org.apache.log4j.Category.priorityToLevelInt(Category.java:325)
      at org.apache.log4j.Category.log(Category.java:305)

        Attachments

          Activity

            People

            Assignee:
            slf4j-dev SLF4J developers list
            Reporter:
            bbrandl@atoss-csd.de bbrandl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: