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. The log categories marked with an underscore ( _ ) will be included and the others excluded. For example, in the snippet above, info and detailed log entries are filtered out and errors and warnings are included.