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

IllegalStateException when logging to Level.ALL

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.6.x
    • log4j-over-slf4j
    • None
    • 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

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

            Dates

              Created:
              Updated: