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

Comment on level ordering in the Logger javadoc

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.7.22
    • Core API
    • None

    Description

      This may be a stupid question, but the Logger javadocs merely say that 


      debug(Marker marker, String msg)
      Log a message with the specific Marker at the DEBUG level.

      error(Marker marker, String msg)
      Log a message with the specific Marker at the ERROR level.

      info(Marker marker, String msg)
      Log a message with the specific Marker at the INFO level.

      trace(Marker marker, String msg)
      Log a message with the specific Marker at the TRACE level.

      warn(Marker marker, String msg)
      Log a message with the specific Marker at the WARN level.


      with no guidance on the relative ordering of DEBUG, ERROR, INFO, TRACE, WARN. I presume that SLF4J merely passes these along to a supported framework, which must include at least these levels, and it is up to the framework to dictate the relative ordering? Or do you assume that all frameworks treat ERROR > WARN > INFO > DEBUG > TRACE ?

      Either way, it would be helpful to include at least one sentence stating this, or referring to the FAQ where the issue can be mentioned in detail, similar to https://www.slf4j.org/faq.html#trace

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            jason_s Jason Sachs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: