log static method
Print log via the SDK logging system. These logs are sent to the Magic Lane servers in case of crashes.
Parameters
- level The severity of the log
- module The module from which the log is coming.
- pszFunction The function from which the log is issued.
- pszFile The file from which the log is issued.
- line The line number in the file at which the log is issued.
- message The message to be logged. Should not contain characters which can be interpreted as format specifiers.
Implementation
static void log({
required GemDumpSdkLevel level,
String module = 'Application',
String function = '',
String file = '',
int line = 0,
required String message,
}) {
staticMethod('Debug', 'log', args: <String, Object>{
'level': level.id,
'pszModule': module,
'pszFunction': function,
'pszFile': file,
'line': line,
'str': message,
});
}