Log4cxx
  1. Log4cxx
  2. LOGCXX-249

ConsoleAppender crashes if layout is not set

    Details

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

      Description

      On Mar 6, 2008, at 4:27 PM, Dale King wrote on log4cxx-user:

      I built using visual studio and ran into a couple of problems to report.
      ...

      I used a properties file and configured a ConsoleAppender but did not
      set the layout for it. Instead of nicely handling it, it crashed the
      application. Probably should fail more gracefully.


      Dale King

        Activity

        Hide
        Curt Arnold added a comment -

        WriterAppender::checkEntryConditions was missing a check for layout == 0 that was in log4j.

        Committed rev 669316.

        Show
        Curt Arnold added a comment - WriterAppender::checkEntryConditions was missing a check for layout == 0 that was in log4j. Committed rev 669316.

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Curt Arnold
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development