# SDK logs (/en/realtime-media/im/reference/sdk-logs/react-native)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

If you’re troubleshooting an issue with the Agora Chat SDK, Agora support team might ask you to send the SDK logs. Logs record information about events that occurred in the SDK. These include errors and warnings as well as informational events.

    ## Collect SDK logs [#collect-sdk-logs-2]

    To output logs on the console, you need to enable the debug mode by setting `debugModel` to `true` during SDK initialization.

    ```typescript
    chatlog.log(`${ChatClient.TAG}: login: `, userName, "******", isPassword);
    ```

    
  
      
  
      
  
      
  
