To enable debug logging for iOS, add the DTXLogLevel
configuration key to your app's Info.plist
file:
<key>DTXLogLevel</key><string>ALL</string>
The available log levels are listed below in order of increasing detail—each level includes the information of the preceding log levels.
OFF
SEVERE
WARNING
INFO
ALL
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.
The default log level is OFF
, as heavy logging can impact your app's performance.
The logging output in the Xcode 15+ console no longer shows timestamps. When you copy the logs, for example, to submit them to a Dynatrace product expert, select all log lines in the console and select Copy Rows with All Metadata.