I am developing my Android App tests with Java_Client. I am starting the Appium Server service with AppiumDriverLocalService and AppiumServiceBuilder classes while setting the logFile to AppiumServiceBuilder. Now Appium is wring the logs to the console as well as in the given file. However the file is deleted immediately when the service is stopped.
First I do not want Appium to write logs in the console as I am providing separate filePath to do that also I do not want the logs file to be deleted when the appium process is killed.
How can I achieve it?