environment('production')) { throw new \RuntimeException('FATAL: rsx:logrotate command is not available in production environment. This is a development-only debugging tool.'); } $this->info('Rotating development logs...'); // Rotate all logs Debugger::logrotate(); $this->info('✅ Logs rotated successfully:'); $this->info(' - Laravel log'); $this->info(' - Nginx access log'); $this->info(' - Nginx error log'); return 0; } }