logRequest static method

void logRequest(
  1. String path
)

Logs the request path.

Implementation

static void logRequest(String path) {
  final now = DateTime.now();
  final tag = useEmoji ? "🛰️ Request" : "Request";
  final prefix = useColor ? ConsoleStyle.blue : '';
  final reset = useColor ? ConsoleStyle.reset : '';

  print("\n========== $prefix[$tag] [$now]$reset ==========");
  print("Path: $path");
  print("===============================================\n");
}