Skip to content

Commit a966f54

Browse files
committed
Changed Ruby useful info description and added code blocks
1 parent 9cf75a0 commit a966f54

File tree

1 file changed

+12
-9
lines changed
  • website_and_docs/content/documentation/webdriver/troubleshooting

1 file changed

+12
-9
lines changed

website_and_docs/content/documentation/webdriver/troubleshooting/logging.en.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Logger level helps to filter out logs based on their severity.
6868

6969
**Actionable Items**
7070

71-
Things are logged as warnings if they are something the user needs to take action on. This is mostly used
71+
Things are logged as warnings if they are something the user needs to take action on. This is often used
7272
for deprecations. For various reasons, Selenium project does not follow standard Semantic Versioning practices.
7373
Our policy is to mark things as deprecated for 3 releases and then remove them.
7474

@@ -129,10 +129,12 @@ Different languages have different level to log information.
129129
{{< alert-content >}}{{< /alert-content >}}
130130
{{< /tab >}}
131131
{{< tab header="Ruby" >}}
132-
Logs useful information at level: <code>:info</code>
132+
<p>Because the Ruby <code>Logger</code> class only has one "debug" level, Selenium is currently using the <code>:info</code> level as a general debug mode, and <code>:debug</code> as a lower level debug mode.
133+
To bring things in line with other languages, we are considering <a href="https://github.com/SeleniumHQ/selenium/issues/11797">changing this behavior</a>.
134+
For now, both info and warnings are handled at the default <code>:warn</code> level.</p>
133135
{{< /tab >}}
134136
{{< tab header="JavaScript" >}}
135-
Logs useful information at level: <code>FINER</code>
137+
Logs useful information at level: <code>INFO</code>
136138
{{< /tab >}}
137139
{{< tab header="Kotlin" >}}
138140
{{< alert-content >}}{{< /alert-content >}}
@@ -184,18 +186,18 @@ Logs can be displayed on `stdout` or stored in a file.
184186
Selenium::WebDriver.logger.output = '/path/to/selenium.log'</pre>
185187
<br>
186188
<p>Sample Output:</p>
187-
<blockquote>
188-
2023-02-08 12:31:23 INFO Selenium -> POST session/8b83ff54712d0a247937d045f8c8e171/url<br>
189-
2023-02-08 12:31:23 INFO Selenium >>> http://127.0.0.1:9515/session/8b83ff54712d0a247937d045f8c8e171/url | {"url":"https://www.selenium.dev/selenium/web/web-form.html"}<br>
190-
2023-02-08 12:31:23 INFO Selenium <- {"value":null}</blockquote>
189+
<pre>
190+
2023-02-08 12:31:23 INFO Selenium -> POST session/8b83ff54712d0a247937d045f8c8e171/url
191+
2023-02-08 12:31:23 INFO Selenium >>> http://127.0.0.1:9515/session/8b83ff54712d0a247937d045f8c8e171/url | {"url":"https://www.selenium.dev/selenium/web/web-form.html"}
192+
2023-02-08 12:31:23 INFO Selenium <- {"value":null}</pre>
191193
{{< /tab >}}
192194
{{< tab header="JavaScript" >}}
193195
<p>Send logs to console output:</p>
194196
<pre>
195197
logging.installConsoleHandler()</pre>
196198
<br>
197199
<p>Sample Output:</p>
198-
<blockquote>
200+
<pre>
199201
[2023-03-21T22:28:20Z] [FINER] [webdriver.http.Executor] >>> POST /session/0208994573cca3250a1066424c1b915c/url<br>
200202
[2023-03-21T22:28:22Z] [FINER] [webdriver.http.Executor] >>>
201203
POST /session/0208994573cca3250a1066424c1b915c/url HTTP/1.1<br>
@@ -208,7 +210,8 @@ Logs can be displayed on `stdout` or stored in a file.
208210
content-type: application/json; charset=utf-8
209211
cache-control: no-cache
210212

211-
{"value":null}</blockquote>
213+
{"value":null}</pre>
214+
<br>
212215
{{< alert-content >}}
213216
Store logs in a file.
214217
{{< /alert-content >}}

0 commit comments

Comments
 (0)