custom static method
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')}");
}