AgentSkillsCN

uloop-get-logs

通过 uloop CLI 获取 Unity 控制台日志。适用于以下情况:(1) 检查操作后的错误或警告,(2) 调试 Unity 编辑器中的运行时问题,(3) 调查意外行为或异常。

SKILL.md
--- frontmatter
name: uloop-get-logs
description: Retrieve Unity Console logs via uloop CLI. Use when you need to: (1) Check for errors or warnings after operations, (2) Debug runtime issues in Unity Editor, (3) Investigate unexpected behavior or exceptions.

uloop get-logs

Retrieve logs from Unity Console.

Usage

bash
uloop get-logs [options]

Parameters

ParameterTypeDefaultDescription
--log-typestringAllLog type filter: Error, Warning, Log, All
--max-countinteger100Maximum number of logs to retrieve
--search-textstring-Text to search within logs
--include-stack-tracebooleantrueInclude stack trace in output
--use-regexbooleanfalseUse regex for search
--search-in-stack-tracebooleanfalseSearch within stack trace

Examples

bash
# Get all logs
uloop get-logs

# Get only errors
uloop get-logs --log-type Error

# Search for specific text
uloop get-logs --search-text "NullReference"

# Regex search
uloop get-logs --search-text "Missing.*Component" --use-regex

Output

Returns JSON array of log entries with message, type, and optional stack trace.