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

Hi !
How can I print the appium server log on a file ? I tried with --log flag but it doesn't work

  • created

    Feb '17
  • last reply

    Oct '18
  • 8

    replies

  • 3.4k

    views

  • 7

    users

  • 1

    like

We redirect stdout and stderr to a log file when launching the appium server

19 days later

Yes ! At the begin I did a mistake because i used --log flag but I wrote the path without the filename ! Now with the correct path It works !

4 months later
2 months later

On Linux you may try to use $ appium server >> my_logs.txt which will redirect output to my_logs.txt file

If you start/stop Appium server from code, then the output will be displayed in console. After that you can use any standard method to print this console in text file.

Example, if you are using maven, then you can use Run -> Run Configurations… -> -> Common tab and then set output file location.

12 months later

just try this:

AppiumDriverLocalService service = new AppiumServiceBuilder()
				.withIPAddress("")
				.usingAnyFreePort()
				.usingDriverExecutable(new File(""))
				.withAppiumJS(new File(""))
				.withLogFile(new File("")) <<<-------------------This will do the trick
				.build();