Unity Debug log
To analyze SDK installation troubles, you can specify the cause by outputting Debug logs. However, please do not output logs when releasing the application.
Android
List of log output flag settings
| Log output flag | Output level |
|---|---|
| DEBUG | DEBUG, INFO, WRAN and ERROR log output |
| INFO | INFO and WRAN and ERROR log is output |
| WARN | WRAN and ERROR are output |
Setting Debug log output
- Add the following to Assets / Plugins / Android / AndroidManifest.xml.
<meta-data
android:name="jp.co.geniee.gnadsdk.common.gnadlogger.priority"
android:value="DEBUG" />
1
2
3
4
2
3
4
- Debug log will appear in logcat on Android side.
iOS
Set the following in info.plist.
| key | type | value |
|---|---|---|
| GNAdSDK_Log_Level | String | Info |
- Set list of log output flag
| logs output flag | logs output string | Output level |
|---|---|---|
| GNLogPriorityInfo | Info | Output All logs |
| GNLogPriorityWarn | Warn | Output "WRAN" and "ERROR" |
| GNLogPriorityNone | None | Not Output logs |
Banner advertisement only
You can also change the LogLevel in the following way.
Log output flag setting list
| Log output flag | Output level |
|---|---|
| INFO | INFO and WRAN and ERROR log is output |
| WARN | WRAN and ERROR are output |
| NONE | Do not output logs |
Setting Debug log output
- Select Inspector setting Tab of SDK Plugin.
- Select
INFOfor Log Priority of GNAd Manager (Script).