Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-488

Space after log level hides log messages

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      Problem:

      Consider the following line in the log4j.properties file:

          log4j.logger.MyClass=TRACE_
      

      Where the underscore represents a trailing space before the line ends. This causes TRACE message for `MyClass` to be silently omitted from the log but no warning is printed. Removing the trailing space restores output of the TRACE message for the respective class.

      Suggested Fix:
      Either implicitly trim the line when parsing the property file and ignore the space, or print a warning during start.

        Attachments

          Activity

            People

            • Assignee:
              tschoening Thorsten Schöning
              Reporter:
              lanoxx Sebastian Geiger
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: