You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds information to the logging docs in
`documentation/webdriver/troubleshooting/`` for setting up
log handlers in Python. This is necessary to get log output.
You must also set a handler (`StreamHandler`, `FileHandler('/path/to/log')`, etc).
31
+
For example, to see logs in the console, you can do this:
32
+
```py
33
+
handler = logging.StreamHandler()
34
+
logger.addHandler(handler)
35
+
```
30
36
{{% /tab %}}
31
37
{{% tab header="CSharp" %}}
32
38
.NET logger is managed with a static class, so all access to logging is managed simply by referencing `Log` from the `OpenQA.Selenium.Internal.Logging` namespace.
You must also set a handler (`StreamHandler`, `FileHandler('/path/to/log')`, etc).
31
+
For example, to see logs in the console, you can do this:
32
+
```py
33
+
handler = logging.StreamHandler()
34
+
logger.addHandler(handler)
35
+
```
30
36
{{% /tab %}}
31
37
{{% tab header="CSharp" %}}
32
38
.NET logger is managed with a static class, so all access to logging is managed simply by referencing `Log` from the `OpenQA.Selenium.Internal.Logging` namespace.
You must also set a handler (`StreamHandler`, `FileHandler('/path/to/log')`, etc).
31
+
For example, to see logs in the console, you can do this:
32
+
```py
33
+
handler = logging.StreamHandler()
34
+
logger.addHandler(handler)
35
+
```
30
36
{{% /tab %}}
31
37
{{% tab header="CSharp" %}}
32
38
.NET logger is managed with a static class, so all access to logging is managed simply by referencing `Log` from the `OpenQA.Selenium.Internal.Logging` namespace.
You must also set a handler (`StreamHandler`, `FileHandler('/path/to/log')`, etc).
34
+
For example, to see logs in the console, you can do this:
35
+
```py
36
+
handler = logging.StreamHandler()
37
+
logger.addHandler(handler)
38
+
```
33
39
{{% /tab %}}
34
40
{{% tab header="CSharp" %}}
35
41
.NET logger is managed with a static class, so all access to logging is managed simply by referencing `Log` from the `OpenQA.Selenium.Internal.Logging` namespace.
0 commit comments