Configure logging for the Android Debug Bridge console
Android
Debug Bridge consoleYou can configure the message categories that are printed to the
Android
Debug Bridge (adb) console. You can configure the logging to be detailed or selective. Changes to the console logging configuration will be applied the next time the target is built and run. Changes made to console logging do not affect the container log.- Open the app’sassets/settings.jsonfile.
- Perform one of the following actions:TaskStepsConfigure detailed logging (print all messages)Add aGDConsoleLoggerarray attribute to the settings object or change the existing attribute to a single string element with a value of “GDFilterNone”, as shown below:... { "GDLibraryMode": "GDEnterprise", "GDApplicationID": "com.example.browser", "GDApplicationVersion": "1.0.0.0", "GDConsoleLogger": [ "GDFilterNone" ] } ….Configure selective loggingAdd aGDConsoleLoggerarray attribute to the settings object or change the existing attribute to add one or more of the logging categories, as shown below:... { "GDLibraryMode": "GDEnterprise", "GDApplicationID": "com.example.browser", "GDApplicationVersion": "1.0.0.0", "GDConsoleLogger": [ "GDFilterErrors_", "GDFilterWarnings_", "GDFilterInfo", "GDFilterDetailed" ] } ...The log categories marked with an underscore ( _ ) will be included and the others excluded. For example, in the example above, info and detailed log entries are filtered out and errors and warnings are included.