> ## 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.

# Flutter SDK Logging

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

## Code Examples

To receive logs from Spike SDK, use the following code:

```dart theme={null}
await SpikeSDKV3.setLogCallback(
    callback: (level, message) {
        log("[SpikeSDK.${level.toJson()}] $message");
    },
);
```

Callback will get log level enum and string with a log message.

```
enum LogLevel {
  verbose,
  debug,
  warning,
  error;
}
```
