Composer での ThingWorx モデルの定義 > モデル化 > Thing > Thing サービス > 診断トレースサービスの使用
診断トレースサービスの使用
ログ用に enableDiagnosticTrace() および disableDiagnosticTrace() スクリプトサービスを使用している場合、診断対象のサービス用のラッパーサービスでこれらのサービスを使用する必要があります。
以下の例では、Thing1MyService サービスがラップされています。
// enableDiagnosticTrace():BOOLEAN
var state = enableDiagnosticTrace();

// result: BOOLEAN
result = Things["Thing1"].MyService();

// disableDiagnosticTrace():BOOLEAN
var state = disableDiagnosticTrace();