public interface LogDaemonClient
Modifier and Type | Method and Description |
---|---|
int |
createLogFile(String logFilePath,
com.facebook.buck.logd.proto.LogType logType)
Client calls this method to request LogD to create a log file in file-system and/or storage.
|
io.grpc.stub.StreamObserver<com.facebook.buck.logd.proto.LogMessage> |
openLog(int logFileId,
String logMessage)
Client calls this method to acquire a StreamObserver object which listens for incoming logs.
|
void |
shutdown()
close all existing channels to logD server
|
int createLogFile(String logFilePath, com.facebook.buck.logd.proto.LogType logType) throws LogDaemonException
logFileId
corresponding to the created file by LogD serverLogDaemonException
io.grpc.stub.StreamObserver<com.facebook.buck.logd.proto.LogMessage> openLog(int logFileId, String logMessage) throws LogDaemonException
logFileId
logFileId
- log file identifier generated by LogD serverlogMessage
- log message to be streamed to LogDLogDaemonException
void shutdown()