blob: b68287fb44b899dbd48e2bcad52cefa5a9826465 [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
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080021 source_pid:int (id: 2);
Tyler Chatow67ddb032020-01-12 14:30:04 -080022
23 // Application name
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080024 name:string (id: 3);
Tyler Chatow67ddb032020-01-12 14:30:04 -080025}
26
27root_type LogMessageFbs;