Configure logging for the Xcode console
Xcode
consoleThe 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.- Open the app’sInfo.plistfile.
- Perform one of the following tasks:TaskStepsConfigure detailed logging
- Add a new row with the following values:
- Key:GDConsoleLogger
- Type:String
- Value:GDFilterNone
- InXcode9.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 theActionmenu:
- Include Info Messages
- Include Debug Messages
Configure selective logging- Add a new row with the following values:
- Key:GDConsoleLogger
- Type:Array
- 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 toStringand the value to the desired logging level:GDFilterDetailed,GDFilterInfo,GDFilterWarnings, orGDFilterErrors.