View robot logs with FTC-relevant filtering.
Views robot logs with FTC-specific filtering and real-time monitoring capabilities.
/plugin marketplace add ncssm-robotics/ftc-claude/plugin install robot-dev@ftc-claudeView robot logs with FTC-relevant filtering.
/log # View recent logs
/log -f # Follow logs in real-time
/log --errors # Show only errors
/log --filter TeamCode # Filter by tag
/log --clear # Clear log buffer first
| Argument | Description |
|---|---|
-f, --follow | Continuous output (like tail -f) |
--errors | Show only errors and exceptions |
--filter <tag> | Filter to specific tag (e.g., TeamCode, RobotCore) |
--clear | Clear log buffer before reading |
--since <time> | Show logs from last N minutes (e.g., --since 5m) |
When this command runs:
Check connection:
adb devices
Clear buffer (if --clear):
adb logcat -c
Run logcat with filters:
Default (FTC-relevant):
adb logcat -v time RobotCore:* FtcRobotController:* TeamCode:* AndroidRuntime:E *:S
Errors only:
adb logcat -v time *:E
Custom filter:
adb logcat -v time <TAG>:* *:S
Format and colorize output:
Robot Logs (Ctrl+C to exit)
──────────────────────────────────────────────
12:34:56.789 [INFO] RobotCore: OpMode 'TeleOp Test' initialized
12:34:56.823 [INFO] TeamCode: Motor initialized
12:34:57.001 [WARN] RobotCore: Battery voltage: 11.8V
12:34:57.234 [INFO] TeamCode: Position: x=12.5, y=24.3
12:35:01.456 [ERROR] AndroidRuntime: FATAL EXCEPTION
java.lang.NullPointerException
at MyOpMode.loop(MyOpMode.java:45)
/log --filter TeamCode
/log --filter RobotCore
/log --filter Limelight
/log --filter OpenCV
/log --filter AndroidRuntime --errors
/log
✗ Robot not connected
Run /connect first, then try again.
/log
No logs matching filter.
Try:
- Run your OpMode to generate logs
- Use a different filter: /log --filter RobotCore
- Clear and retry: /log --clear
When your OpMode crashes, look for:
/log --errors
The crash shows:
In your OpMode code:
// These show up in /log --filter TeamCode
telemetry.addData("Debug", "Motor power: " + power);
telemetry.update();
Or use Android logging:
import android.util.Log;
Log.d("TeamCode", "Debug message");
Log.w("TeamCode", "Warning message");
Log.e("TeamCode", "Error message");
To save logs to a file:
adb logcat -d > robot_logs.txt