uloop-get-logs

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

uloop get-logs

uloop get-logs

Retrieve logs from Unity Console.
从Unity控制台获取日志。

Usage

用法

bash
uloop get-logs [options]
bash
uloop get-logs [options]

Parameters

参数

ParameterTypeDefaultDescription
--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
boolean
false
Include stack trace in output
--use-regex
boolean
false
Use regex for search
--search-in-stack-trace
boolean
false
Search within stack trace
参数类型默认值描述
--log-type
string
All
日志类型筛选:
Error
Warning
Log
All
--max-count
integer
100
要获取的最大日志数量
--search-text
string-日志中要搜索的文本
--include-stack-trace
boolean
false
在输出中包含堆栈跟踪信息
--use-regex
boolean
false
使用正则表达式进行搜索
--search-in-stack-trace
boolean
false
在堆栈跟踪中进行搜索

Examples

示例

bash
undefined
bash
undefined

Get all logs

获取所有日志

uloop get-logs
uloop get-logs

Get only errors

仅获取错误日志

uloop get-logs --log-type Error
uloop get-logs --log-type Error

Search for specific text

搜索特定文本

uloop get-logs --search-text "NullReference"
uloop get-logs --search-text "NullReference"

Regex search

正则表达式搜索

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

Output

输出

Returns JSON array of log entries with message, type, and optional stack trace.
返回包含消息、类型及可选堆栈跟踪信息的日志条目JSON数组。