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 Hightouch Network stack for library compatibility and simplicity.
Implementation
@override
void parseLog(LogMessage log) {
switch (log.kind) {
case LogFilterKind.debug:
logger.d("Hightouch: ${log.message}");
break;
case LogFilterKind.warning:
logger.w("Hightouch: ${log.message}");
break;
case LogFilterKind.error:
logger.e("Hightouch: ${log.message}");
break;
}
}