将日志通过WebSocket发送出去

This commit is contained in:
2026-01-29 01:58:34 +08:00
parent dd7c5151dc
commit 85d5b179e2
9 changed files with 526 additions and 17 deletions

17
proto/message.proto Normal file
View File

@@ -0,0 +1,17 @@
syntax = "proto3";
package gou;
enum MessageType {
MESSAGE_TYPE_TRACE = 0;
MESSAGE_TYPE_DEBUG = 1;
MESSAGE_TYPE_INFO = 2;
MESSAGE_TYPE_WARNING = 3;
MESSAGE_TYPE_ERROR = 4;
}
message Starpoles {
MessageType type = 1;
string message = 2;
}