glassfish
  1. glassfish
  2. GLASSFISH-17314

System.out.printf split into multiple lines in server.log

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 3.1.2_b07, 3.1.2_b17, 4.0
    • Component/s: logging
    • Labels:
      None

      Description

      I have the following lines in ejb class:

      System.out.printf("This is a printf in class %s%n", this);

      It shows up in server.log as 2 separate lines:

      [#|2011-09-17T21:03:30.437-0400|INFO|glassfish4.0|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=13;_ThreadName=Thread-2;|This is a printf in class |#]
      
      [#|2011-09-17T21:03:30.437-0400|INFO|glassfish4.0|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=13;_ThreadName=Thread-2;|com.sun.ejb.devtest.SlessBean@4ae54c6|#]
      

      I expect it to be 1 single line in server.log.

      out.println doesn't have this problem.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            naman_mehta
            Reporter:
            Cheng Fang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: