cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Mohammed.Rayan
AppDynamics Team

If your Mobile Agent version is 4.54.4 & 4.3, you need to use the loggingLevel method to enable and set the different logging levels in your instrumentation code.

 

For instance:

// appKey should be assigned your EUM app key
    ADEumAgentConfiguration *config = [[ADEumAgentConfiguration alloc] initWithAppKey:@ "AD-AAB-AAK-VMJ"];
    config.loggingLevel = ADEumLoggingLevelAll;
    [ADEumInstrumentation initWithConfiguration:config];
 
Screenshot:
4.5,4.4 & 4.34.5,4.4 & 4.3 

If your Mobile Agent version is 4.2 & below, you need to use the enableLogging boolean property to enable it.

 

 [ADEumInstrumentation initWithKey:@"<App Key>" collectorUrl:@“<Collector URL>" enableLogging:<Boolean>];


[ADEumInstrumentation initWithKey: @"EUM-AAB-AAD"
                             collectorUrl: @"http://localhost:7001"
                            enableLogging: YES];

 

Note: AppDynamics logs are prepended with tag x/AppDynamics, where x = the first letter of the log level. i/AppDynamics indicates INFO level logging and D/AppDynamics indicates DEBUG level logging.

 

Once you have enabled the above DEBUG logging and re-build and run your app in a simulator using Xcode, you will see your debug logs in the console/terminal window in the debug area of the Xcode.

 

Typical  IOS Agent DEBUG logging: 

2018-07-31 19:24:52.988848+0530 rayan-test[65046:12836369] I/AppDynamics: Agent release version DEVBUILD
2018-07-31 19:24:52:987 rayan-test[65046:303] I/AppDynamics: Agent release version DEVBUILD
2018-07-31 19:24:53.000508+0530 rayan-test[65046:12836375] I/AppDynamics: Agent will use Application Key: AD-AAB-AAK-VMJ
2018-07-31 19:24:53:000 rayan-test[65046:303] I/AppDynamics: Agent will use Application Key: AD-AAB-AAK-VMJ
2018-07-31 19:24:53:000 rayan-test[65046:303] I/AppDynamics: Agent will use Collector URL: https://mobile.eum-appdynamics.com
2018-07-31 19:24:53.001126+0530 rayan-test[65046:12836369] I/AppDynamics: Agent will use Collector URL: https://mobile.eum-appdynamics.com
2018-07-31 19:24:53:000 rayan-test[65046:303] I/AppDynamics: Agent has enabled the Screenshot System
2018-07-31 19:24:53.001621+0530 rayan-test[65046:12836369] I/AppDynamics: Agent has enabled the Screenshot System
2018-07-31 19:24:53:000 rayan-test[65046:303] I/AppDynamics: Agent will use Screenshot URL: https://image.eum-appdynamics.com
2018-07-31 19:24:53.002102+0530 rayan-test[65046:12836369] I/AppDynamics: Agent will use Screenshot URL: https://image.eum-appdynamics.com
2018-07-31 19:24:53:000 rayan-test[65046:303] I/AppDynamics: Agent has enabled JS Agent Instrumentation
2018-07-31 19:24:53.002562+0530 rayan-test[65046:12836369] I/AppDynamics: Agent has enabled JS Agent Instrumentation
2018-07-31 19:24:53:000 rayan-test[65046:303] I/AppDynamics: Agent has not enabled JS Agent Ajax Instrumentation
2018-07-31 19:24:53.003029+0530 rayan-test[65046:12836369] I/AppDynamics: Agent has not enabled JS Agent Ajax Instrumentation
2018-07-31 19:24:53.004019+0530 rayan-test[65046:12836104] Could not successfully update network info during initialization.
2018-07-31 19:24:53:007 rayan-test[65046:303] D/AppDynamics: Agent using executable UUID: bef3fdcb458d3333a3717cf96be9b7c1
2018-07-31 19:24:53.007749+0530 rayan-test[65046:12836369] D/AppDynamics: Agent using executable UUID: bef3fdcb458d3333a3717cf96be9b7c1
2018-07-31 19:24:53:008 rayan-test[65046:303] D/AppDynamics: Agent using executable UUID: bef3fdcb458d3333a3717cf96be9b7c1
2018-07-31 19:24:53.008403+0530 rayan-test[65046:12836369] D/AppDynamics: Agent using executable UUID: bef3fdcb458d3333a3717cf96be9b7c1
2018-07-31 19:24:53.091846+0530 rayan-test[65046:12836375] D/AppDynamics: Crash reporting enabled
2018-07-31 19:24:53:091 rayan-test[65046:303] D/AppDynamics: Crash reporting enabled
2018-07-31 19:24:53:092 rayan-test[65046:303] I/AppDynamics: Master ANR Timer set to 1.000000
2018-07-31 19:24:53.092656+0530 rayan-test[65046:12836369] I/AppDynamics: Master ANR Timer set to 1.000000
2018-07-31 19:24:53:092 rayan-test[65046:303] I/AppDynamics: UI ANR Timer set to 0.900000
2018-07-31 19:24:53.093138+0530 rayan-test[65046:12836369] I/AppDynamics: UI ANR Timer set to 0.900000
2018-07-31 19:24:53:093 rayan-test[65046:d03] D/AppDynamics: Flush postponed due to SQL Data Protection lock.
2018-07-31 19:24:53.094162+0530 rayan-test[65046:12836369] D/AppDynamics: Flush postponed due to SQL Data Protection lock.
2018-07-31 19:24:53:192 rayan-test[65046:303] V/AppDynamics: onApplicationDidBecomeActive
2018-07-31 19:24:53.192499+0530 rayan-test[65046:12836367] V/AppDynamics: onApplicationDidBecomeActive
2018-07-31 19:24:53:192 rayan-test[65046:310f] D/AppDynamics: Loading default beacons from persistence
2018-07-31 19:24:53.192950+0530 rayan-test[65046:12836367] D/AppDynamics: Loading default beacons from persistence
2018-07-31 19:24:53:198 rayan-test[65046:310f] D/AppDynamics: Total number of beacons loaded: 0
2018-07-31 19:24:53.198349+0530 rayan-test[65046:12836367] D/AppDynamics: Total number of beacons loaded: 0
2018-07-31 19:24:53:198 rayan-test[65046:310f] D/AppDynamics: Loading crash beacons from persistence
2018-07-31 19:24:53.198849+0530 rayan-test[65046:12836367] D/AppDynamics: Loading crash beacons from persistence
2018-07-31 19:24:53:202 rayan-test[65046:310f] D/AppDynamics: Total number of beacons loaded: 0
2018-07-31 19:24:53.203174+0530 rayan-test[65046:12836367] D/AppDynamics: Total number of beacons loaded: 0
2018-07-31 19:24:53:202 rayan-test[65046:310f] D/AppDynamics: We need to send #3 beacons to collector
2018-07-31 19:24:53.203639+0530 rayan-test[65046:12836367] D/AppDynamics: We need to send #3 beacons to collector
2018-07-31 19:24:53:203 rayan-test[65046:310f] D/AppDynamics: Adding ADRUM headers to request.
2018-07-31 19:24:53.204140+0530 rayan-test[65046:12836367] D/AppDynamics: Adding ADRUM headers to request.
2018-07-31 19:24:53:204 rayan-test[65046:310f] D/AppDynamics: Agent sending message to collector (eumcollector/mobileMetrics?version=2 -- https://mobile.eum-appdynamics.com) [AD-AAB-AAK-VMJ]
2018-07-31 19:24:53.204584+0530 rayan-test[65046:12836367] D/AppDynamics: Agent sending message to collector (eumcollector/mobileMetrics?version=2 -- https://mobile.eum-appdynamics.com) [AD-AAB-AAK-VMJ]
2018-07-31 19:24:53:204 rayan-test[65046:310f] D/AppDynamics: [{
  "et" : 1533045293093,
  "eut" : 582833854,
  "st" : 1533045293093,
  "cf" : "-1794",
  "ct" : "wifi",
  "osv" : "11.4",
  "dmo" : "x86_64",
  "mv" : "1",
  "type" : "system-event",
  "event" : "Agent Init",
  "tm" : "2048",
  "cc" : "8",
  "ab" : "DEVBUILD",
  "sut" : 582833854,
  "agv" : "DEVBUILD",
  "ds" : "476902",
  "av" : "1.0"
},{
  "viewControllerName" : "ViewController",
  "viewControllerUuid" : "b62392e0-4f33-4025-9be9-4bbee10fe387",
  "cf" : "-1794",
  "osv" : "11.4",
  "ec" : 242,
  "dmo" : "x86_64",
  "mv" : "1",
  "type" : "ui",
  "ct" : "wifi",
  "tm" : "2048",
  "cc" : "8",
  "ab" : "DEVBUILD",
  "event" : "View Controller Start",
  "st" : 1533045293187,
  "sut" : 582833949,
  "agv" : "DEVBUILD",
  "ds" : "476902",
  "av" : "1.0"
},{
  "et" : 1533045293192,
  "eut" : 582833953,
  "st" : 1533045293093,
  "cf" : "-1794",
  "osv" : "11.4",
  "ec" : 243,
  "dmo" : "x86_64",
  "mv" : "1",
  "type" : "ui",
  "ct" : "wifi",
  "tm" : "2048",
  "cc" : "8",
  "ab" : "DEVBUILD",
  "event" : "App Start",
  "rootView" : "ViewController",
  "sut" : 582833854,
  "agv" : "DEVBUILD",
  "ds" : "476902",
  "av" : "1.0"
}]
2018-07-31 19:24:53.205070+0530 rayan-test[65046:12836367] D/AppDynamics: [{
  "et" : 1533045293093,
  "eut" : 582833854,
  "st" : 1533045293093,
  "cf" : "-1794",
  "ct" : "wifi",
  "osv" : "11.4",
  "dmo" : "x86_64",
  "mv" : "1",
  "type" : "system-event",
  "event" : "Agent Init",
  "tm" : "2048",
  "cc" : "8",
  "ab" : "DEVBUILD",
  "sut" : 582833854,
  "agv" : "DEVBUILD",
  "ds" : "476902",
  "av" : "1.0"
},{
  "viewControllerName" : "ViewController",
  "viewControllerUuid" : "b62392e0-4f33-4025-9be9-4bbee10fe387",
  "cf" : "-1794",
  "osv" : "11.4",
  "ec" : 242,
  "dmo" : "x86_64",
  "mv" : "1",
  "type" : "ui",
  "ct" : "wifi",
  "tm" : "2048",
  "cc" : "8",
  "ab" : "DEVBUILD",
  "event" : "View Controller Start",
  "st" : 1533045293187,
  "sut" : 582833949,
  "agv" : "DEVBUILD",
  "ds" : "476902",
  "av" : "1.0"
},{
  "et" : 1533045293192,
  "eut" : 582833953,
  "st" : 1533045293093,
  "cf" : "-1794",
  "osv" : "11.4",
  "ec" : 243,
  "dmo" : "x86_64",
  "mv" : "1",
  "type" : "ui",
  "ct" : "wifi",
  "tm" : "2048",
  "cc" : "8",
  "ab" : "DEVBUILD",
  "e
2018-07-31 19:24:53:204 rayan-test[65046:310f] D/AppDynamics: -----------------------------------
2018-07-31 19:24:53.210121+0530 rayan-test[65046:12836367] D/AppDynamics: -----------------------------------
2018-07-31 19:24:54:467 rayan-test[65046:310f] D/AppDynamics: Agent received response code: 200
2018-07-31 19:24:54.468413+0530 rayan-test[65046:12836367] D/AppDynamics: Agent received response code: 200

2018-07-31 19:25:15.329407+0530 rayan-test[65046:12836375] D/AppDynamics: We need to send #1 beacons to collector
2018-07-31 19:25:15:296 rayan-test[65046:a00b] D/AppDynamics: Adding ADRUM headers to request.
2018-07-31 19:25:15.329962+0530 rayan-test[65046:12836375] D/AppDynamics: Adding ADRUM headers to request.
2018-07-31 19:25:15:297 rayan-test[65046:a00b] D/AppDynamics: Agent sending message to collector (eumcollector/mobileMetrics?version=2 -- https://mobile.eum-appdynamics.com) [AD-AAB-AAK-VMJ]
2018-07-31 19:25:15.330499+0530 rayan-test[65046:12836375] D/AppDynamics: Agent sending message to collector (eumcollector/mobileMetrics?version=2 -- https://mobile.eum-appdynamics.com) [AD-AAB-AAK-VMJ]
2018-07-31 19:25:15:297 rayan-test[65046:a00b] D/AppDynamics: [{
  "sut" : 582855921,
  "av" : "1.0",
  "ec" : 244,
  "see" : false,
  "mv" : "1",
  "et" : 1533045315234,
  "dmo" : "x86_64",
  "url" : "http:\/\/localhost:8080\/output.json",
  "eut" : 582855995,
  "pcl" : 2829,
  "osv" : "11.4",
  "cc" : "8",
  "tm" : "2048",
  "is" : "AppDynamics.NSURLSession",
  "ct" : "wifi",
  "type" : "network-request",
  "agv" : "DEVBUILD",
  "ab" : "DEVBUILD",
  "ds" : "476902",
  "cf" : "-1794",
  "bkgd" : false,
  "hrc" : 200,
  "st" : 1533045315160,
  "crg" : "2b18b43d-b3d7-49e1-bd2e-7b1e6b46a3f3"
}]
2018-07-31 19:25:15.331062+0530 rayan-test[65046:12836375] D/AppDynamics: [{
  "sut" : 582855921,
  "av" : "1.0",
  "ec" : 244,
  "see" : false,
  "mv" : "1",
  "et" : 1533045315234,
  "dmo" : "x86_64",
  "url" : "http:\/\/localhost:8080\/output.json",
  "eut" : 582855995,
  "pcl" : 2829,
  "osv" : "11.4",
  "cc" : "8",
  "tm" : "2048",
  "is" : "AppDynamics.NSURLSession",
  "ct" : "wifi",
  "type" : "network-request",
  "agv" : "DEVBUILD",
  "ab" : "DEVBUILD",
  "ds" : "476902",
  "cf" : "-1794",
  "bkgd" : false,
  "hrc" : 200,
  "st" : 1533045315160,
  "crg" : "2b18b43d-b3d7-49e1-bd2e-7b1e6b46a3f3"
}]
2018-07-31 19:25:15:297 rayan-test[65046:a00b] D/AppDynamics: -----------------------------------
2018-07-31 19:25:15.331955+0530 rayan-test[65046:12836375] D/AppDynamics: -----------------------------------
2018-07-31 19:25:15:540 rayan-test[65046:a00b] D/AppDynamics: Agent received response code: 200
2018-07-31 19:25:15.540791+0530 rayan-test[65046:12836823] D/AppDynamics: Agent received response code: 200

 

Screenshot: 

Console logConsole log

 

Console debug logs

You can export the contents of the debug logs by either selecting and copying them to a file or exporting them to a file directly using the option below:

 

1. Click on Window > Devices from the Xcode menu.

2. Under Devices section in the left column, choose your device.

3. To view the console logs, select View Device Logs button under the Device Information section on the right-hand panel.

4. To view the device console, click the up-triangle at the bottom left of the right-hand panel to show the device console. To save the console as a file, click the down arrow on the bottom right.

Version history
Last update:
‎10-12-2018 02:04 PM
Updated by:
On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here