Project

General

Profile

Actions

Issue #2222

open

Better logging system

Added by Denis 'GNUtoo' Carikli almost 4 years ago. Updated almost 4 years ago.

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
Actions #1

Updated by Denis 'GNUtoo' Carikli almost 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
    }
}
Actions #2

Updated by Denis 'GNUtoo' Carikli almost 4 years ago

  • Device Not device specific added
  • Device deleted (Unknown)
  • Type of work C programming added
Actions

Also available in: Atom PDF