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 outputLogCallback.DoneException
- if thrown will stop the logging.void error(String error)
error
- error descriptionvoid open() throws IOException
IOException
- in case of any I/O errorvoid close()
Copyright © 2020. All rights reserved.