Logs (v1.0.6+)

A logging framework (datadog) is available to use

Setup

Android

A third optional parameter has been added to FluttersAppsPanelModuleBuilder.init(), of type APLogConfig

val apLogConfig = APLogConfig( BuildConfig.AP_SDK_NAME, BuildConfig.BUILD_TYPE, BuildConfig.APPLICATION_ID, "your_datadog_api_key", enableCrashes = true, ) FluttersAppsPanelModuleBuilder.init( this, appsPanelConfiguration, apLogConfig, )

iOS

In the same place as the configuration of the AP SDK, configure the Logger like this

#if DEV try! AppsPanel.shared.configure( withAppName: "your-app-dev", appKey: "key", privateKey: "private" ) Logger.configure(environment: "dev", clientToken: "your_datadog_api_key")

Usage

AppsPanel.logManager.i("My info message");
AppsPanel.logManager.d("My debug message");
AppsPanel.logManager.w("My warning message");
AppsPanel.logManager.e("My error message");
AppsPanel.logManager.wtf("My severe error message");