Actions
Issue #2222
openBetter logging system
Status:
New
Priority:
Normal
Assignee:
-
Category:
Telephony and mobile data
Target version:
Start date:
02/24/2021
Due date:
% Done:
0%
Estimated time:
Resolution:
Device:
Not device specific
Grant:
Type of work:
C programming
Updated by Denis 'GNUtoo' Carikli over 4 years ago
Right now the current logging system lacks debug level and something like tags (it could be an arbitrary string).
The callback would look like that:
void modem_log_handler(void *user_data, char* tag, enum log_level log_level, const char *msg)
{
    /* Up to the application to handle it */
}
	The tag could be used to filter out parts of the logs, like booting for instance. For example:
void modem_log_handler(void *user_data, char* tag, enum log_level log_level, const char *msg)
{
    // todo: handle all the cases
    if (strcmp("Boot", tag)) {
         // handle all non boot messages
    }
}
Updated by Denis 'GNUtoo' Carikli over 4 years ago
- Device Not device specific added
- Device deleted (Unknown)
- Type of work C programming added
Actions