parseLog method
Implement this method to process logging messages. This is where the logic for the target will be added. Feel free to add your own data queueing and offline storage.
- important: Use the Journify network stack for Journify library compatibility and simplicity.
Implementation
@override
void parseLog(LogMessage log) {
switch (log.kind) {
case LogFilterKind.debug:
logger.d("Journify: ${log.message}");
break;
case LogFilterKind.warning:
logger.w("Journify: ${log.message}");
break;
case LogFilterKind.error:
logger.e("Journify: ${log.message}");
break;
}
}