Issue #2222
open
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
}
}
- Device Not device specific added
- Device deleted (
Unknown)
- Type of work C programming added
Also available in: Atom
PDF