Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-136

API Enhancements: 'String.format(String, Object...)' Functionality & Delegate Convenience Methods

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.1
    • Fix Version/s: 2.0
    • Labels:
    • Environment:

      N/A

      Description

      Improvements to the API to allow convenience methods for performing String.format(String, Object...) and allow access to the internal logging delegate.

      Firstly, to add the String#format(String, Object...) functionality modify the methods (note: only #trace(...) shown):

      void trace(Object message, Object... args);
      void trace(Object message, Throwable t, Object... args);

      This would allow compatiblity with previous versions of the API (although I believe they would still require a re-compile) and help tidy up code.

      Secondly, to obtain access to the internal instance of a logger the addition of a #getDeletegate() method.

      I can supply the code if required.

        Attachments

        1. commons-logging-1.1.1-src.rar
          852 kB
          Madhusudan Pagadala
        2. commons-logging-1.1.1.jar
          56 kB
          Madhusudan Pagadala
        3. site.rar
          128 kB
          Madhusudan Pagadala

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dansiviter Daniel Siviter
            • Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified