> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spikeapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# React Native SDK Logging

> Getting logs for troubleshooting and debugging from Spike SDK for React Native platform.

## Code Examples

To receive logs from Spike SDK for React Native, use the following code preferably before creating a connection:

```javascript theme={null}
await Spike.setLogCallback((level, message) => {
    if (level === LogLevel.verbose) {
        return
    }
    console.log(`[SpikeSDK.${level.toUpperCase()}] ${message}`);
});
```
