Skip Navigation

Configure logging for the 
Xcode
 console

The messages that are printed to the 
Xcode
 console can be configured in the build targets of the app project. Different targets can have different activity logging configurations. You can configure the logging to be detailed or selective. Changes to the console logging configuration take effect the next time the target is built and run, and do not affect the container log.
  1. Open the app’s 
    Info.plist
     file.
  2. Perform one of the following tasks:
    Task
    Steps
    Configure detailed logging
    1. Add a new row with the following values:
      • Key: 
        GDConsoleLogger
      • Type: 
        String
      • Value: 
        GDFilterNone
    2. In 
      Xcode
       9.3 or later, to view the detailed logs, open the console app (Window > Devices and Simulators, or from OSX, Applications > Utilities > Console.app) and enable the following settings in the 
      Action
       menu:
      • Include Info Messages
      • Include Debug Messages
    Configure selective logging
    1. Add a new row with the following values:
      • Key: 
        GDConsoleLogger
      • Type: 
        Array
    2. For each category that you want to omit from the console log, add a row under the logger row as an item in the logger’s array. For each item, set the Type to 
      String
       and the value to the desired logging level: 
      GDFilterDetailed
      GDFilterInfo
      GDFilterWarnings
      , or 
      GDFilterErrors