Commons Logging
  1. Commons Logging
  2. LOGGING-11

[logging][PATCH] Enable the configuration of date and time format in SimpleLog

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.0.4
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      It would be nice if the user could configure the date and time format used by
      SimpleLog.

      I have made patches for SimpleLog and the unittests. The patch enables a new
      optional configuration property
      org.apache.commons.logging.simplelog.dateTimeFormat. The property takes a value
      of a SimpleDateFormat pattern. If the pattern is not specified or is invalid,
      the default pattern is used.

        Activity

        Hide
        Dennis Lundberg added a comment -

        Created an attachment (id=10714)
        Patch for SimpleLog.java

        Show
        Dennis Lundberg added a comment - Created an attachment (id=10714) Patch for SimpleLog.java
        Hide
        Dennis Lundberg added a comment -

        Created an attachment (id=10715)
        Patch for unittests

        Show
        Dennis Lundberg added a comment - Created an attachment (id=10715) Patch for unittests
        Hide
        Dennis Lundberg added a comment -

        Created an attachment (id=10716)
        Patch for unittests

        Show
        Dennis Lundberg added a comment - Created an attachment (id=10716) Patch for unittests
        Hide
        Dennis Lundberg added a comment -

        Created an attachment (id=10717)
        Patch for unittests

        Show
        Dennis Lundberg added a comment - Created an attachment (id=10717) Patch for unittests
        Hide
        rdonkin@apache.org added a comment -

        Committed this patch. Many thanks.

        I will probably go ahead and create some more unit tests plus creating a documentation patch now.

        Robert

        Show
        rdonkin@apache.org added a comment - Committed this patch. Many thanks. I will probably go ahead and create some more unit tests plus creating a documentation patch now. Robert

          People

          • Assignee:
            Unassigned
            Reporter:
            Dennis Lundberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development