Configure logging for the Android Debug Bridge console

You 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.
  1. Open the app’s assets/settings.json file.
  2. Perform one of the following actions:

    Task

    Steps

    Configure detailed logging (print all messages)

    Add a GDConsoleLogger array 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 logging

    Add a GDConsoleLogger array 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.