Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 1 | namespace aos.logging; |
| 2 | |
| 3 | // Log level, corresponding to levels in logging.h |
| 4 | enum Level : byte { |
| 5 | ERROR = -1, |
| 6 | DEBUG = 0, |
| 7 | INFO = 1, |
| 8 | WARNING = 2, |
| 9 | FATAL = 4, |
| 10 | LOG_UNKNOWN = 5 |
| 11 | } |
| 12 | |
| 13 | table 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 |
Ravago Jones | fb6a7a5 | 2020-11-14 13:47:46 -0800 | [diff] [blame] | 21 | source_pid:int (id: 2); |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 22 | |
| 23 | // Application name |
Ravago Jones | fb6a7a5 | 2020-11-14 13:47:46 -0800 | [diff] [blame] | 24 | name:string (id: 3); |
milind | 1f1dca3 | 2021-07-03 13:50:07 -0700 | [diff] [blame] | 25 | |
| 26 | // Total number of LogMessage send failures. |
| 27 | send_failures:uint64 (id: 4); |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | root_type LogMessageFbs; |