Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1530

Access log adds newline by CRLF on Windows

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.0.21.Final
    • 2.0.20.Final
    • Core
    • None

      As the following code, access log implementation always adds newline by LF for Linux.

      It is better to add CRLF on Windows to be able to open the access_log in notepad that does not support LF.

      https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/handlers/accesslog/DefaultAccessLogReceiver.java

      for (String message : messages) {
          writer.write(message);
          writer.write('\n');  // add LF
      }
      

            flaviarnn Flavia Rainone
            rhn-support-nagetsum Norito Agetsuma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: