Configure selective logging for the Xcode console
Xcode
console
If there are multiple
Info.plist
files, check that you are editing the correct one by opening the Info tab of the app
target being built to make sure the new settings are there. As with detailed logging, the console will only include log messages that are not in any of the categories specified in the
Info.plist
. To set the target’s activity logging configuration to print a selection of message categories, do the following:
- Open the appInfo.plistfile.
- Add a row with GDConsoleLogger as its key or change the existing row as follows:
- SetArrayas the type of the logger row.
- For each category you don’t want to include, add a row under the logger row as an item in the logger’s array.
- Set the item to typeString.
- Set the value to one of the following:
- GDFilterDetailed
- GDFilterInfo
- GDFilterWarnings
- GDFilterErrors