start method

Future<void> start()

Start logging.

Errors occur if they are executed consecutively.

ログの記録を開始します。

連続して実行するとエラーがでます。

Implementation

Future<void> start() async {
  assert(
    _startTime == null,
    "You have already started. Please execute [stop] before starting.",
  );
  if (_startTime != null) {
    return;
  }
  _startTime = DateTime.now();
  await Future.wait(values.map((e) => e.start(_startTime!)));
  _onStart.call();
}