title: What are the different methods to show Appium logs with Python in Windows?
body: <p>I am trying to understand how to display the logs of Appium server for my python code.</p>
  
  <p>First of all, I educated myself more about python logs And I made some experiments with 3 ways to sart Appium server before to come to you.</p>
  
  <p>1)I tried by this way:</p>
  
  <pre><code>appium_service = AppiumService()
  appium_service.start()
  </code></pre>
  
  <p>But I don't see any log. I guess I need to modify the python file of appium_service method.</p>
  
  <p>2) So I tried to start appium server with command (I added the flag of scurity you suggested):</p>
  
  <p><code>os.system("start /B start cmd.exe @cmd /k appium --relaxed-security --log-timestamp --log appium.log -a 127.0.0.1 -p 4728")</code></p>
  
  <p>I could see some logs in terminal but not so much than Appium GUI server.
  <a href="https://i.stack.imgur.com/qTv1m.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qTv1m.jpg" alt="enter image description here"></a> </p>
  
  <p>3) To show you the difference, I commented the lines of code which start Appium server, and I start it by hand with Appium GUI.
  <a href="https://i.stack.imgur.com/h62jq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h62jq.jpg" alt="enter image description here"></a></p>
  
  <p>As you can see Appium GUI logs give more information to debug my code.</p>
  
  <p>What should I do to display same info in Appium terminal than Appium GUI?
  What should I do to display same info in 'appium_service.start()'  than Appium GUI?</p>
  
  <p>I am working since 3 days to understand how can I show these logs without Appium GUI as my code need to run without any human interaction.</p>
  
  <p>Thanks for your help.</p>