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

Varargs for Logger methods

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • None
    • Core API
    • None
    • Operating System: All
      Platform: All

    Description

      Users of Java 5 would benefit from conveinience methods on org.slf4j.Logger allowing n arguemnts to be passed to a log request, without the need to construct an object array first. This could take the form of void debug(String msg, Object ... args); or void debug(String msg, Throwable t, Object ... args);

      Obstacles exist in adding this functionality due to preserving compatbility with JDK1.2. An additional "Tiger" module might be required as a wrapper to the existing implementation.

      Existing discussion can be found on the mailing list:
      http://www.slf4j.org/pipermail/user/2006-February/000063.html
      http://www.slf4j.org/pipermail/user/2006-October/000136.html

      Attachments

        1. logger-benchmark.html
          18 kB
          Lóránt Pintér
        2. varargs.patch
          59 kB
          Joern Huxhorn
        3. varargs2.patch
          56 kB
          Joern Huxhorn

        Activity

          People

            slf4j-dev SLF4J developers list
            pledge Martin Gilday
            Votes:
            0 Vote for this issue
            Watchers:
            25 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: