info static method

void info(
  1. dynamic message, {
  2. DateTime? time,
  3. Object? error,
  4. StackTrace? stackTrace,
  5. bool isReport = true,
  6. double? sampleRate = 1.0,
  7. required String actionModule,
  8. required String actionName,
})

Implementation

static void info(
  dynamic message, {
  DateTime? time,
  Object? error,
  StackTrace? stackTrace,
  bool isReport = true,
  double? sampleRate = 1.0,
  required String actionModule,
  required String actionName,
}) {
  // 仅 debug build 走 debugPrint;release 下断言被剥除,避免高频 info
  // 在生产环境多走一份 stdout/logcat I/O。
  assert(() {
    debugPrint("$message");
    return true;
  }());
  platform_log.TCICLogImpl.info(
    message,
    time: time,
    error: error,
    stackTrace: stackTrace,
    isReport: isReport,
    sampleRate: sampleRate,
    actionModule: actionModule,
    actionName: actionName,
  );
}