blob: 789724f4a64d8a1c675bdefb78200631543ce289 [file] [log] [blame]
Tyler Chatow67ddb032020-01-12 14:30:04 -08001namespace aos.logging;
2
3// Log level, corresponding to levels in logging.h
4enum Level : byte {
5 ERROR = -1,
6 DEBUG = 0,
7 INFO = 1,
8 WARNING = 2,
9 FATAL = 4,
10 LOG_UNKNOWN = 5
11}
12
13table LogMessageFbs {
14 // Text of the log message, includng file name and line
15 message:string (id: 0);
16
17 // Severity of the log message
18 level:Level (id: 1);
19
20 // Pid of the process creating the log message
21 source:int (id:2);
22
23 // Application name
24 name:string (id:3);
25}
26
27root_type LogMessageFbs;