public class DefaultLogCallback extends Object implements LogCallback
LogCallback.DoneException| Constructor and Description |
|---|
DefaultLogCallback(LogOutputSpec outputSpec) |
| 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.
|
public DefaultLogCallback(LogOutputSpec outputSpec)
public void open()
throws IOException
LogCallbackopen in interface LogCallbackIOExceptionpublic void close()
LogCallbackclose in interface LogCallbackpublic void log(int type,
Timestamp timestamp,
String txt)
LogCallbacklog in interface LogCallbacktype - 1 for log on standard output, 2 for standard errortimestamp - timestampp on the server side when this entry happenedtxt - log outputpublic void error(String error)
LogCallbackerror in interface LogCallbackerror - error descriptionCopyright © 2019. All rights reserved.