Open KrzysztofC opened 5 months ago
@KrzysztofC, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
I'm noticing that this issue stems from the fact that any logging configuration with a logging.properties
file is overwritten and replaced with the custom Selenium formatters and handlers (See configureLogging()
function on line 96 of selenium/java/src/org/openqa/selenium/grid/log/LoggingOptions.java
). This can be fixed by simply checking if the handlers
property if the LogManager
is null or not, but is it an intention of selenium to not allow custom configured logging?
What happened?
When using: -Djava.util.logging.config.file=/opt/logging.properties which contains: handlers=java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter.format=%1$tF %1$tT.%1$tL %4$s: %3$s %5$s %n
this works in other Java app that uses java.util.logging for logging, but it has zero effect on Grid Logs.
How can we reproduce the issue?
Relevant log output
Operating System
RH8 and Win10
Selenium version
4.21.0
What are the browser(s) and version(s) where you see this issue?
N/A
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
4.21.0