Microsoft SDK for Java

setServiceAutoDumpErr

This method of the Service Class determines whether each line written to err is automatically written to the event log or whether the service will manually flush the stream to log events.

Syntax

public boolean setServiceAutoDumpErr(boolean autodump);

Return Value

Returns the previous auto-flush state.

Parameters

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 err.flush, which will write any text printed to the stream since the last flush to the event log as a single event.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.