FixAndroidLogger
1.0.0
該應用程序顯示瞭如何使用fmx.platform.logger.android.fix單元,您可以更改FiremonKey使用的標籤,以便可以使用ADB LogCat正確過濾您的日誌以進行調試。
為了使用它,您要做的就是在項目文件中包括fmx.platform.logger.android.fix單元。
var LLogService: IFMXLoggingService;
var LLogPriority: IFMXTagPriority;
if TPlatformServices.Current.SupportsPlatformService(IFMXLoggingService, LLogService) and
Supports(LLogService, IFMXTagPriority, LLogPriority) then
begin
LLogPriority.i( ' TagName ' , ' LogMessage ' );
end ;ADB logcat -s標籤名:*
查看代碼對於如何使用它。


單擊“更改標籤”按鈕後,所有日誌都將用該名稱標記。

您也可以具有優先級標籤,因此您的標籤可以具有調試,錯誤,信息或冗長的優先級。
要使用ADB LogCat過濾標籤,只需使用命令
adb logcat -s MyAppName
MyAppName是您選擇使用的標籤名稱。
希望這對您的調試有所幫助。
享受,
chee-wee chua,
新加坡。