src/main/java/robocup/server/SoccerServerProcess.java
/**
     * Redirect the given output stream to System.out (in a new thread)
     *
     * @param stream
     */
Redirect the given output stream to System.out (in a new thread)
@param stream
Redirect the given output stream to System . out ( in a new thread ) @param stream
private void redirectStream(final InputStream stream) {
        Runnable streamReader = () -> {
            BufferedReader errorReader =
                    new BufferedReader(new InputStreamReader(stream));
            String line;
            try {
                while ((line = errorReader.readLine()) != null) {
                    log.info("Soccer Server: " + line);
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        };
        ExecutorService executor = Executors.newSingleThreadExecutor();
        executor.execute(streamReader);
        executor.shutdown();
    }
private void redirectStream ( final InputStream stream ) { Runnable streamReader = ( ) -> { BufferedReader errorReader = new BufferedReader ( new InputStreamReader ( stream ) ) ; String line ; try { while ( ( line = errorReader . readLine ( ) ) != null ) { log . info ( "Soccer Server: " + line ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } } ; ExecutorService executor = Executors . newSingleThreadExecutor ( ) ; executor . execute ( streamReader ) ; executor . shutdown ( ) ; }
Redirect the given output stream to System.out (in a new thread)
 @param stream
Redirect the given output stream to System . out ( in a new thread ) @param stream