custom static method

void custom(
  1. Object? object,
  2. String color, {
  3. LoggerOptions? options,
})

Implementation

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