Uploaded image for project: 'JBoss Logging'
  1. JBoss Logging
  2. JBLOGGING-110

Add additional vararg variants for primitives

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 3.2.0.Final
    • None
    • None
    • None

      There are a lot of methods on Logger. Well I propose we add a bunch more.

      We should add variations of debugf and tracef which support the following argument combinations:

         String fmt, int arg
         String fmt, int arg1, Object arg2
         String fmt, int arg1, int arg2
         String fmt, int arg1, int arg2, Object arg3
         String fmt, int arg1, int arg2, Object... args
         String fmt, long arg
         String fmt, long arg1, Object arg2
         String fmt, long arg1, long arg2
         String fmt, long arg1, long arg2, Object arg3
         String fmt, long arg1, long arg2, Object... args
      

      The level check would happen before boxing the primitive argument values, preventing the cost of boxing from being incurred for debug/trace messages.

            jperkins-rhn James Perkins
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: