存储于 MPMC 队列中的日志条目
| 59 | |
| 60 | /// 存储于 MPMC 队列中的日志条目 |
| 61 | struct LogEntry { |
| 62 | uint64_t seq{0}; |
| 63 | uint64_t core_id{0}; |
| 64 | Level level{Level::kDebug}; |
| 65 | char msg[239]{}; |
| 66 | }; |
| 67 | static_assert(sizeof(LogEntry) == 256, "LogEntry must be 256 bytes"); |
| 68 | |
| 69 | /// 全局日志队列(64 KB 静态内存,constexpr 构造) |
nothing calls this directly
no outgoing calls
no test coverage detected