Skip to main content
The PlayFab Unified SDK provides an extensible debug tracing system to help developers monitor internal API behavior, track errors, and integrate PlayFab logs into their game’s logging infrastructure. Debug output can also be routed to the Visual Studio Output pane during development.

Overview

Debug tracing is useful for:
  • Monitoring PlayFab SDK requests and responses
  • Diagnosing API call failures
  • Integrating with custom logging systems
  • Adjusting log verbosity per environment (development vs. production)
  • Debugging multithreaded issues via thread ID tracking

Enabling and Configuring Tracing

You can enable tracing, set verbosity, and configure where output is sent using the following API calls:

Trace Levels

Integrating with Custom Logging Systems

GameLog Helper Function

Trace Callback Example

Initialization

Best Practices

  • Verbose in development: Enables comprehensive tracing for debugging and QA.
  • Error or Off in production: Reduces performance impact and log volume.
  • Centralize logging: Use a unified GameLog function or similar to aggregate logs from PlayFab and other systems.
  • Debug multithreading: Use the thread ID in logs to identify concurrency issues.

See also

Last modified on August 4, 2026