public interface LogCallback
| Modifier and Type | Interface and Description |
|---|---|
static class |
LogCallback.DoneException
Exception indicating that logging is done and should be finished
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Invoked by a user when callback is no longer used.
|
void |
error(String error)
Method called in case on an error when reading the logs
|
void |
log(int type,
Timestamp timestamp,
String txt)
Receive a log entry
|
void |
open()
To be called by a client to start the callback and allocate the underlying output stream.
|
void log(int type,
Timestamp timestamp,
String txt)
throws LogCallback.DoneException
type - 1 for log on standard output, 2 for standard errortimestamp - timestampp on the server side when this entry happenedtxt - log outputCancellationException - if thrown will stop the logging.LogCallback.DoneExceptionvoid error(String error)
error - error descriptionvoid open() throws IOException
IOExceptionvoid close()
Copyright © 2018. All rights reserved.