push method

  1. @override
Future<void> push(
  1. BaseLog log
)
override

Implementation

@override
Future<void> push(log) async {
  if (log.type == LogType.message) {
    await _pushMessage(log as Message);
  } else if (log is BaseEvent) {
    await _pushEvent(log);
  } else {
    InnerLog().e('Invalid log type: ${log.type}');
  }
}