第2个回答 2008-05-27
err
An error output stream for the service. Data written to the stream is automatically redirected to the event log as error events using the event source specified to jntsvc. Each line printed to the stream results in a new event. Multiple lines can be written by synchronizing on this object and using setServiceAutoDumpErr to temporarily turn off auto-logging, as shown in the following example:
synchronized (err)
{
boolean oldautodump = setServiceAutoDumpErr(false);
err.println("Line 1");
err.println("Line 2");
setServiceAutoDumpErr(oldautodump);
err.flush();
}本回答被提问者采纳