-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace LogEntry
Rust struct with a protobuf object
#568
Comments
Yeah, I think that makes sense for now. Something like the following? message LogMessage {
string file = 1;
int32 line = 2;
int32 level = 3;
string message = 4;
} |
For reference, this is the corresponding Rust struct: https://docs.rs/log/0.4.10/log/struct.Record.html (not that we have to necessarily stick to that though). |
Assigning to @rbehjati to investigate, I think it makes sense to go ahead with that proto definition, which perhaps should live near or inside FYI the |
* LogEntry in sdk/rust/oak/src/logger/mod.rs is removed * oak/proto/logger.proto containing LogMessage is added * OakChannelLogger is updated to send LogMessage instead of string * LoggingNode is updated to handle LogMessage instances
The change list in (#697) relies on |
* LogEntry in sdk/rust/oak/src/logger/mod.rs is removed * oak/proto/logger.proto containing LogMessage is added * OakChannelLogger is updated to send LogMessage instead of string * LoggingNode is updated to handle LogMessage instances
* LogEntry in sdk/rust/oak/src/logger/mod.rs is removed * oak/proto/logger.proto containing LogMessage is added * OakChannelLogger is updated to send LogMessage instead of string * LoggingNode is updated to handle LogMessage instances
* LogEntry in sdk/rust/oak/src/logger/mod.rs is removed * oak/proto/logger.proto containing LogMessage is added * OakChannelLogger is updated to send LogMessage instead of string * LoggingNode is updated to handle LogMessage instances
* LogEntry in sdk/rust/oak/src/logger/mod.rs is removed * oak/proto/logger.proto containing LogMessage is added * OakChannelLogger is updated to send LogMessage instead of string * LoggingNode is updated to handle LogMessage instances
* LogEntry in sdk/rust/oak/src/logger/mod.rs is removed * oak/proto/logger.proto containing LogMessage is added * OakChannelLogger is updated to send LogMessage instead of string * LoggingNode is updated to handle LogMessage instances
* LogEntry in sdk/rust/oak/src/logger/mod.rs is removed * oak/proto/logger.proto containing LogMessage is added * OakChannelLogger is updated to send LogMessage instead of string * LoggingNode is updated to handle LogMessage instances
oak/sdk/rust/oak_log/src/lib.rs
Lines 31 to 37 in 1528e03
Currently
LogEntry
is a Rust struct wrapping a string, and on the C++ side of the logging pseudo-node, this is de-serialized as a string, but there is no "schema" to keep the two sides in sync, especially if we wanted to add more fields to it (e.g. log level).@daviddrysdale : it looks like protobuf is going to be the de facto IDL, at least for the time being, so perhaps we should replace this object (and others) with corresponding protobuf ones. What are your thoughts?
The text was updated successfully, but these errors were encountered: