AgentSkillsCN

uloop-get-logs

检查 Unity 控制台日志。在以下情况下使用:查看日志、调试错误、调查故障,或当用户询问控制台输出时。关键选项:--log-type(Error/Warning/Log/All)、--max-count、--search-text。可检索错误、警告和 Debug.Log 消息。

SKILL.md
--- frontmatter
name: uloop-get-logs
description: "Check Unity Console logs. Use when: checking logs, debugging errors, investigating failures, or when user asks about console output. Key options: --log-type (Error/Warning/Log/All), --max-count, --search-text. Retrieves errors, warnings, and Debug.Log messages."

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-tracebooleanfalseInclude 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.