
重要度レベル
INFO、WARN、ERROR イベントを記録し、シグナルとノイズを分離。対応が必要な事項を優先的に把握できます。
プレイヤー単位の履歴
すべてのログエントリにユーザー ID が紐付けられており、任意のプレイヤーの完全なアクティビティ履歴を即座に取得できます。
サポートの効率化
検索可能でタイムスタンプ付きのログをサポートチームに提供し、開発者の介入なしでプレイヤーの問題を診断できます。
クイック統合
アクティビティログ
// Unity C#: User Logs (attached to the signed in player)
using PM.horizOn.Cloud.Manager;
// INFO and WARN entries
await UserLogManager.Instance.Info("Player entered zone A");
await UserLogManager.Instance.Warn("Low memory detected");
// ERROR entry with an error code (max 50 characters)
await UserLogManager.Instance.Error("Save failed unexpectedly", "SAVE_ERR_001");# REST API: User Logs
# Create an INFO log entry
curl -X POST https://horizon.pm/api/v1/app/user-logs/create \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId":"USER_ID","message":"Player entered zone A","type":"INFO"}'
# Create an ERROR log with error code
curl -X POST https://horizon.pm/api/v1/app/user-logs/create \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId":"USER_ID","message":"Save failed","type":"ERROR","errorCode":"SAVE_ERR_001"}'これらの例では、Unity SDK(C#)とREST APIを使っています。GodotとUnrealでも、それぞれのSDKで同じ呼び出しができます: クイックスタートを参照
