report method
自定义错误日志上报,msg
支持所有primitive type, 支持map,支持list,
但是不支持用户自定义的object,如传入自定义object,必须在class内提供对应的toJson方法
report('report msg');
report('report1', 'report2'
);
report({'key':'value'});
Implementation
@override
void report(
dynamic msg, {
String? ext1,
String? ext2,
String? ext3,
}) {
try {
_normalLogPipeline(_buildNormalLog(
msg,
LogType.report,
ext1: ext1 ?? config.ext1,
ext2: ext2 ?? config.ext2,
ext3: ext3 ?? config.ext3,
));
} catch (e) {
developer.log('report error', name: debugLogType.sendError, error: e);
}
}