Commons Logging
  1. Commons Logging
  2. LOGGING-17

[logging] SimpleLog.java adds extra - characters

    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

      I've just started using commons-logging, so I used SimpleLog to get started.
      When doing so I found that the output isn't consistent.

      With the default settings (showlogname=false, showShortLogname=true) the output
      looks like this:

      [DEBUG] CodeGenerator - -locale.language=sv

      With altered settings (showlogname=true, showShortLogname=false) the output
      looks like this:

      [DEBUG] se.dennislundberg.codegeneration.ui.CodeGenerator - locale.language=sv

      As you can see in the first example there is an extra '-' before the log message.

        Activity

        Hide
        Dennis Lundberg added a comment -

        Created an attachment (id=9838)
        Renames the variable "prefix" to "shortLogName" and adds some JavaDoc for it. A couple of typos and some trailing whitespace are also fixed.

        Show
        Dennis Lundberg added a comment - Created an attachment (id=9838) Renames the variable "prefix" to "shortLogName" and adds some JavaDoc for it. A couple of typos and some trailing whitespace are also fixed.
        Hide
        Dennis Lundberg added a comment -

        Created an attachment (id=10608)
        Updated version of the previous patch that also removes a duplicate assignment

        Show
        Dennis Lundberg added a comment - Created an attachment (id=10608) Updated version of the previous patch that also removes a duplicate assignment
        Hide
        Craig McClanahan added a comment -

        Fixed in nightly build 20040229 (and upcoming 1.0.4 release). Thanks for the patch!

        Show
        Craig McClanahan added a comment - Fixed in nightly build 20040229 (and upcoming 1.0.4 release). Thanks for the patch!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development