This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
29 / 29
Nov 2018

Ah! You must be using the Appium App. For full control over Appium you'll need to install by NPM or clone the source code. I don't think the App gives you the flexibility to do the things you want.

Full disclosure: I consider the App a nice "proof of concept" but I would never use it for a serious automation project. Too limiting!

ok then, how to store the logs into a String in java ?

I just took a look at the app. Under the Apple menu there is a checkbox for "Show iOS System Log". Have you tried that?

this option show the system logs but not the logs printed by the app using NSLog (iOS)

Ok. I don't know how you can get a log from the device like this using the app.

As I said above, use the showIOSLog option using source or an NPM install.

10 months later

Hi, I am trying to get the real device console logs as well.
By setting the capability showIOSLog to true, will this automatically write the logs into my appium.log file? or do I have to do something extra. because right now I dont see those logs in the appium log.
Maybe some hint what else to do?

Thanks Juliane

showIOSLog did not work for me too for real device.:cry: I am using

Appium 1.6.1-beta
Xcode 8.1
iOS10

I got the solution and now device logs for ios could be fetched. :slight_smile:

1 month later

Hello @Sonali Can you please share the solution for how to get the appium logs in the java code ?

1 month later

@wreed @Sonali is there a difference between using the cap "realDeviceLogger", and "showiOSLog" ?

Also I believe the --log flag also does the same thing as showiOSlog?
Thanks.

Is there any way we can pull out the network calls or Api that are given invoked during the appium operations ?

@wreed tagging again in hopes of getting a response to my comment from 5-6 days ago :slight_smile:

I'm actually not sure. It seems like realDeviceLogger might not get logs from a simulator, but I can't find anything documenting that.

7 months later
4 months later
8 months later

I put both of the following capabilities in my project, and it showed the device console logs!

desiredCapabilities.setCapability("realDeviceLogger", "/usr/local/lib/node_modules/deviceconsole"); desiredCapabilities.setCapability("showIOSLog", "true");
  • Real Device: iPhone 6S
  • iOS: 11.4.1
  • Appium Server: v1.7.2