Skip Navigation

Set selective logging

  1. Open the
    assets/settings.json
    file of the app.
  2. Add a
    GDConsoleLogger
    array attribute to the settings object, or change the existing attribute to one or more of the categories defined in Log message categories as shown in context in the following snippet:
    ... {   "GDLibraryMode": "GDEnterprise", "GDApplicationID": "com.example.browser", "GDApplicationVersion": "1.0.0.0", "GDConsoleLogger": [         "GDFilterErrors_",         "GDFilterWarnings_",         "GDFilterInfo",         "GDFilterDetailed" ] } ...
Next time the target is built and run, the console will include all messages of the activities configured. For example, in the snippet above, warnings and errors are filtered out because an underscore character appended to a category string omits it as a category. Thus, in the example, only log messages in the Info and Detailed categories will be included.