Documentation

​
​

Development

User Acquisition

Monetization

Industry

Cloud Code

Scripting API

Services C# SDKs

Services JavaScript SDKs

Admin REST API

Client REST API

Scheduler Admin REST API

Observability REST API

Open Unity Dashboard

Cloud Code

LiveOps
​
​
Cloud Code
  • Overview
  • Get started
  • Server authority
    • UGS integration and access control
    • Cheat prevention
    • Game state management
    • Debug with logs
  • Cloud Code C# modules
  • Cloud Code JavaScript scripts
  • Logging
  • Use-case samples
  • Privacy and consent
  1. Cloud Code

Debug with logs

Add custom log statements to debug issues and increase observability in your game.
Read time 1 minute
Last updated 9 months ago

In a server authoritative game, your code isn't on the player client. This means it's important to have proper observability to debug issues in a server authoritative game. To monitor your game, you can use logs, which Cloud Code and Triggers automatically generate.
To avoid blind spots in complex cloud code, you need detailed logs. You can add your own custom log statements in Cloud Code to record debugging information. For example, you can strategically log steps, inputs, outputs and errors to increase observability and help you pinpoint bugs.
For more information, refer to Logging.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page