This method of the Service Class determines whether each line written to out is automatically written to the event log or whether the service will manually flush the stream to log events.
public boolean setServiceAutoDumpOut(boolean autodump);
Returns the previous auto-flush state.
autodump | Set to true to automatically flush to the Windows NT event log whenever a new line is written. Set to false to enable the writing of multiline error messages. In this case, the stream can be manually flushed by calling out.flush, which will write any text printed to the stream since the last flush to the event log as a single event. |