1 Reply Latest reply on Feb 17, 2014 6:55 AM by Eduardo Macarron

    System.out.println() not working?

    Eduardo Macarron Newbie

      I have just installed a JBoss Developer Studio 7.1.0 GA. I am having problems with logging so I ended up creating just a Serlvet with a line that reads System.outl.printin("test"). And to my surprise, it is not being shown at the console nor it is in server.log. O_o

       

      I have not made any configuration in the JBoss 6.2 EAP that comes with the dev studio.

       

      What shoud I do to make System.out.prinln() work?

       

      Thanks in advance!

        • 1. Re: System.out.println() not working?
          Eduardo Macarron Newbie

          I have an interesting update. It is System.out.print() which does not work but System.out.println() does!!

           

          12:48:36,065 INFO  [stdout] (http-localhost/127.0.0.1:8080-1) test!

           

          Seems something related to buffer flushing because this lines:

           

          System.out.print("test1!");

          System.out.println("test2!");

           

          Print this:

          12:55:42,831 INFO  [stdout] (http-localhost/127.0.0.1:8080-1) test1!test2!