Bug 1407969 - Add C# code example. r?maja_zf
DONTBUILD
Thanks-to: Jim Evans <james.h.evans.jr@gmail.com>
MozReview-Commit-ID: DF1HJUj3Yin
--- a/testing/geckodriver/doc/TraceLogs.md
+++ b/testing/geckodriver/doc/TraceLogs.md
@@ -100,27 +100,42 @@ See the client-specific documentation be
way to enable trace logs in your language. We want to expand this
documentation to cover all the best known clients people use with
geckodriver. If you find your language missing, please consider
[submitting a patch].
[submitting a patch]: ../CONTRIBUTING.md
+C#
+--
+
+The Selenium [C# client] comes with a [`FirefoxOptions`] helper for
+constructing the [`moz:firefoxOptions`] capabilities object:
+
+ FirefoxOptions options = new FirefoxOptions();
+ options.LogLevel = FirefoxDriverLogLevel.Trace;
+ IWebDriver driver = new FirefoxDriver(options);
+
+The log output is directed to stdout.
+
+[C# client]: https://seleniumhq.github.io/selenium/docs/api/dotnet/
+[`FirefoxOptions`]: https://seleniumhq.github.io/selenium/docs/api/dotnet/html/T_OpenQA_Selenium_Firefox_FirefoxOptions.htm
+
Java
----
The Selenium [Java client] also comes with
a [`org.openqa.selenium.firefox.FirefoxOptions`] helper for
constructing the [`moz:firefoxOptions`] capabilities object:
FirefoxOptions opts = new FirefoxOptions().setLogLevel(Level.ALL);
WebDriver driver = new FirefoxDriver(opts);
-The log output is helpfully propagated to stdout.
+As with C#, the log output is helpfully propagated to stdout.
[Java client]: https://seleniumhq.github.io/selenium/docs/api/java/
[`org.openqa.selenium.firefox.FirefoxOptions`]: https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/firefox/FirefoxOptions.html
Python
------