C++Builder XE8でAndroidアプリケーションのロギングを行う方法です。
#include <FMX.Platform.hpp>
UnicodeString msg = L"ログメッセージです。";
if (TPlatformServices::Current->SupportsPlatformService(__uuidof(IFMXLoggingService)))
{
// IFMXLoggingServiceが利用な可能なとき
_di_IFMXLoggingService LoggingService =
TPlatformServices::Current->GetPlatformService(__uuidof(IFMXLoggingService));
LoggingService->Log("%s", ARRAYOFCONST((msg)));
}
ログはAndroid Debug Monitorで確認できます。