@@ -41,7 +41,7 @@ For more fine-tuned control, Ruby Selenium created its own Logger class to wrap
41
41
This implementation provides some interesting additional features.
42
42
Obtain the logger directly from the ` #logger ` class method on the ` Selenium::WebDriver ` module:
43
43
44
- {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L11 " >}}
44
+ {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L12 " >}}
45
45
{{% /tab %}}
46
46
{{% tab header="JavaScript" %}}
47
47
``` javascript
@@ -101,7 +101,7 @@ logging.basicConfig(level=logging.WARN)
101
101
As of Selenium v4.9.1, The default is ` :info ` .
102
102
103
103
To change the level of the logger:
104
- {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L13 " >}}
104
+ {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L14 " >}}
105
105
{{% /tab %}}
106
106
{{% tab header="JavaScript" %}}
107
107
JavaScript has 9 logger levels: ` OFF ` , ` SEVERE ` , ` WARNING ` , ` INFO ` , ` DEBUG ` , ` FINE ` , ` FINER ` , ` FINEST ` , ` ALL ` .
@@ -279,7 +279,7 @@ handler with either a `StreamHandler` or a `FileHandler`:
279
279
By default, logs are sent to the console in ` stdout ` .
280
280
To store the logs in a file:
281
281
282
- {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L15 " >}}
282
+ {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L16 " >}}
283
283
{{% /tab %}}
284
284
{{% tab header="JavaScript" %}}
285
285
JavaScript does not currently support sending output to a file.
@@ -319,9 +319,9 @@ Everything that Selenium logs includes an ID. You can also turn on or off all de
319
319
using ` :deprecations ` .
320
320
321
321
These methods accept one or more symbols or an array of symbols:
322
- {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#17 " >}}
322
+ {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#18 " >}}
323
323
or
324
- {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L18 " >}}
324
+ {{< gh-codeblock path="/examples/ruby/spec/troubleshooting/logging_spec.rb#L19 " >}}
325
325
{{% /tab %}}
326
326
{{< tab header="JavaScript" >}}
327
327
{{< alert-content >}}{{< /alert-content >}}
0 commit comments