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

GelfLayout can't produce newline delimited events

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.12.1, 2.13.3
    • Fix Version/s: 2.14.0
    • Component/s: Layouts
    • Labels:
      None

      Description

      Hello, the GelfLayout currently generates either \0 delimiter or no delimiter at all. We would like to use GELF for structured logging to files and Docker, and for that we need the events to be ended with a newline.

      I propose to add an option to GelfLayout to support this, possibly named eventEol to be same as in JsonLayout. I can provide a patch if this will be considered a good idea.

      In case the wanted behavior can be achieved without any code change, I would welcome such answer too.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jakluk Jakub Lukes

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment