Logging for iOS

To enable debug logging for iOS, add the following snippet to Info.plist or Dynatrace.plist:


Info.plist is available in the Xcode project navigator under Supporting Files or under Resources for older project files. Dynatrace.plist is created by developers who want to keep Info.plist clean. Therefore, the location may vary.

Available log levels are ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, and OFF.

While running your app, you should find logs in the console within the Xcode debug area. Note that the log level is designed for troubleshooting and has no impact on the data captured by OneAgent. For performance reasons, the default log level is OFF as heavy logging can have a performance impact.