DocsGetting Started
Getting Started
Follow these steps to integrate Logchits and start capturing video logs, network activity, and console output.
1. Install SDK
Add the Logchits SDK to your project using your platform’s package manager.
// Gradle
implementation("com.logchits:android-sdk:1.0.0")2. Initialize Logchits
Call Logchits.start() once during app startup. This initializes Logchits and enables automatic network logging.
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
Logchits.start(
apiKey = "lc_live_your_api_key"
)
}
}3. Recording (Optional)
Start and stop session recording to capture video and network activity.
// Start recording
Logchits.startRecording()
// Stop recording
Logchits.stopRecording()
4. Console Logs (Optional)
Send structured logs to Logchits using the built-in logger.
Logchits.log.info("Info log")
Logchits.log.debug("Debug log")
Logchits.log.warn("Warning log")
Logchits.log.error("Error log")