About uloop-get-logs
uloop-get-logs is a command-line skill for retrieving Unity Console logs. It filters by type or search text and can include stack traces in the JSON output.
Key features
- 01Filter logs by type
- 02Search message text
- 03Search with regular expressions
- 04Include or search stack traces
- 05Limit the number of returned logs
Use cases
- 01Find errors or warnings in Console logs
- 02Search logs for a specific message
- 03Review stack traces for matching entries
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ hatayama/ unity-cli-loop --skill uloop-get-logsAfter installing, type/uloop-get-logsin Claude Code to confirm it loaded.
Details
From the project READMEuloop get-logs
Retrieve logs from Unity Console.
Usage
uloop get-logs [options]
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
--log-type | string | All | Log type filter: Error, Warning, Log, All |
--max-count | integer | 100 | Maximum number of logs to retrieve |
--search-text | string | - | Text to search within logs |
--include-stack-trace | flag | - | Include stack trace in output |
--use-regex | flag | - | Use regex for search |
--search-in-stack-trace | flag | - | Search within stack trace |
Output
Returns JSON with:
TotalCount(number): Total logs available before max-count clippingDisplayedCount(number): Logs returned in this response (≤--max-count)- Input filters (
LogType,MaxCount,SearchText,IncludeStackTrace) are echoed back in the response Logs(array): Each entry has:Type(string):"Error","Warning", or"Log"Message(string): Log message bodyStackTrace(string): Stack trace text. Empty when--include-stack-traceisfalse.
Comments
Markdown supported