Skip to content

Commit 9f6199c

Browse files
committed
Add LogEntry message for ROS log entries with detailed fields
1 parent 3e0ba70 commit 9f6199c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

protobuf_definitions/message_formats.proto

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,28 @@ message BinlogRecord {
2121
google.protobuf.Timestamp clock_monotonic = 3; // Posix CLOCK_MONOTONIC timestamp.
2222
}
2323

24+
// Log entry
25+
//
26+
// Used to store ROS log entries in the bez file
27+
message LogEntry {
28+
enum LogLevel {
29+
LOG_LEVEL_UNSPECIFIED = 0; // Unspecified log level.
30+
LOG_LEVEL_TRACE = 1; // Trace log level.
31+
LOG_LEVEL_DEBUG = 2; // Debug log level.
32+
LOG_LEVEL_INFO = 3; // Info log level.
33+
LOG_LEVEL_WARNING = 4; // Warning log level.
34+
LOG_LEVEL_ERROR = 5; // Error log level.
35+
LOG_LEVEL_CRITICAL = 6; // Critical log level.
36+
}
37+
google.protobuf.Timestamp timestamp = 1; // Timestamp of the log entry.
38+
string process_name = 2; // Name of the process that generated the log entry.
39+
uint64 process_id = 3; // Process ID of the log entry.
40+
uint64 thread_id = 4; // Thread ID of the log entry.
41+
string source = 5; // Source of the log entry, such as "Blueye App", "Drone Supervisor", etc.
42+
LogLevel level = 6; // Log level, info, warning, or error.
43+
string message = 7; // Log message.
44+
}
45+
2446
// Motion input from client.
2547
//
2648
// Used to indicate the desired motion in each direction.

0 commit comments

Comments
 (0)