You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should implement a simple management API to allow viewing logs for any connected agent. An API should look something like this:
packagecontrol;
serviceLog {
// Streams logs from the agent according to the parameters specified in the request.// The stream will be closed when the newest requested log is sent, unless 'follow'// is true, in which case the stream will remain open indefinitely and continue to// send logs in real time as they are generated.rpcStreamLogs(LogStreamRequest) returns (streamStructuredLogRecord);
}
messageLogStreamRequest {
google.protobuf.Timestampsince=1;
google.protobuf.Timestampuntil=2;
repeatedLogStreamFilterfilters=3;
boolfollow=4;
}
messageLogStreamFilter {
// A glob pattern to match against the logger name. For example, "plugin.*"// will match all plugin loggers.optionalstringnamePattern=1;
// Minimum log severity level to include in the stream.optionalint32level=2;
}
// Represents a single structured log message. Roughly analagous to slog.Record.messageStructuredLogRecord {
google.protobuf.Timestamptime=1;
stringmessage=2;
repeatedAttrattributes=3;
}
// A key-value pair analagous to slog.Attr.messageAttr {
stringkey=1;
google.protobuf.Anyvalue=2;
}
The text was updated successfully, but these errors were encountered:
We should implement a simple management API to allow viewing logs for any connected agent. An API should look something like this:
The text was updated successfully, but these errors were encountered: