Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-101

Attribute "format" for SyslogAppender is mandatory

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta2
    • Fix Version/s: 2.0-beta3
    • Component/s: Appenders
    • Labels:
      None

      Description

      In the SyslogAppender the configuration attribute "Format" must be present, otherwise a NullPointerException is thrown in method "createAppender" when the following statement is executed:

      if (format.equalsIgnoreCase(RFC5424))

      The fix is simply to add a check so the "equalsIgnoreCase" is called only if the format variable isn't Null.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              colomboe Emanuele Colombo

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment