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

# Advanced Configuration

> Advanced Configuration — Zixflow Android SDK integration guide.

### Configuration Options

```kotlin theme={null}
val config = ZixflowConfigBuilder(
    applicationContext = this,
    apiKey = "YOUR_API_KEY"
)
    // Logging: Set log level for debugging
    .logLevel(ZixflowLogLevel.DEBUG)  // ERROR, INFO, DEBUG

    // Auto-tracking: Automatically track device info
    .autoTrackDeviceAttributes(true)

    // Activity screen tracking: Auto-track activity transitions
    .autoTrackActivityScreens(true)

    // Lifecycle events: Track app open, close, etc.
    .trackApplicationLifecycleEvents(true)

    // API endpoint (custom)
    .apiHost("api-events.zixflow.com/v1")

    // CDN endpoint (custom)
    .cdnHost("api-events.zixflow.com/v1")

    // Event batching
    .flushAt(20)          // Send events after 20 tracked
    .flushInterval(30)    // Or every 30 seconds

    .build()
```

### Log Levels

Control SDK logging verbosity:

```kotlin theme={null}
import com.zixflow.sdk.ZixflowLogLevel

.logLevel(ZixflowLogLevel.ERROR)  // Errors only
.logLevel(ZixflowLogLevel.INFO)   // Errors + informational
.logLevel(ZixflowLogLevel.DEBUG)  // All messages (development)
```

***
