how to get the iOS device console logs with appium java ?
created
Jan '16
last reply
Nov '18
- 28
replies
- 8.8k
views
- 11
users
- 1
like
- 1
link
how to get the iOS device console logs with appium java ?
I don't think you can retrieve the logs as a whole. If you want to get the device logs into their own file I think your best bet would be to print them to the Appium log, and then do some post test run parsing on that log file to create a new log with only device logs. Some kind of regular expression would be able to help here.
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!
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
Hello @Sonali Can you please share the solution for how to get the appium logs in the java code ?