log static method

void log(
  1. String message, {
  2. LoggerOptions? options,
})

Implementation

static void log(String message, {LoggerOptions? options}) {
  final location = _getLocation();
  LoggingRegistry().useLogging(LogLevel.info, message);
  if(options?.isDebug == true) {
    debugPrint(
        "${DateTime.now().toIso8601String()} $_tag: $message ${chalk.grey('Location: $location')}");
    return;
  }
  developer.log(
      "${DateTime.now().toIso8601String()} $_tag: $message ${chalk.grey('Location: $location')}");
}