title: Log Appium testresults to console
body: <p>Appium won't log the test results (of the UI-tests, executed with adb emulator) to the debug output (Deug.WriteLine). </p>
  
  <p>According to the documentation, get test logs is possible with the following line</p>
  
  <pre><code>ILogs logs = driver.Manage().Logs;
  </code></pre>
  
  <p>Hower, Appium has different log types:</p>
  
  <ul>
  <li>Browser</li>
  <li>Client</li>
  <li>Driver</li>
  <li>Profiler</li>
  <li>Server</li>
  </ul>
  
  <p>I tried every single log type with the following code. But by executing I don't get any result and the test will (where I put the code) fail. Does anyone have a solution for this problem?</p>
  
  <pre><code>ReadOnlyCollection&lt;LogEntry&gt; logs = _driver.Manage().Logs.GetLog(LogType.Browser);
  //  ReadOnlyCollection&lt;LogEntry&gt; logs = _driver.Manage().Logs.GetLog(LogType.Client);
  //  ReadOnlyCollection&lt;LogEntry&gt; logs = _driver.Manage().Logs.GetLog(LogType.Driver);
  //  ReadOnlyCollection&lt;LogEntry&gt; logs = _driver.Manage().Logs.GetLog(LogType.Profiler);
  //  ReadOnlyCollection&lt;LogEntry&gt; logs = _driver.Manage().Logs.GetLog(LogType.Server);
  
  foreach (var log in logs)
  {
      Debug.WriteLine("Time: " + log.Timestamp);
      Debug.WriteLine("Message: " + log.Message);
      Debug.WriteLine("Level: " + log.Level);
  }
  </code></pre>