title: Invalid --log-level value. Unable to initialize logging. Exiting... error while starting Selenium Grid Node
body: <p>I have problem with Selenium Grid. Then I try to connect to node, i've got an error on node side.+</p>
  
  <p>U run hub by this way:</p>
  
  <pre><code>java -jar .\selenium-server-standalone-3.141.59.jar -role hub
  </code></pre>
  
  <p>I run node by this way:</p>
  
  <pre><code>java -jar .\selenium-server-standalone-3.141.59.jar -role node -nodeConfig .\NodeConfig.json
  </code></pre>
  
  <p>NodeConfig.json:</p>
  
  <pre><code>{
    "capabilities":
        [
          {
              "browserName": "chrome",
              "platform": "WINDOWS",
              "maxInstances": 5,
          "chrome_binary":"chromedriver.exe",
              "seleniumProtocol": "WebDriver",
              "nodeName": "Local Chrome Node"
          }
        ],
      "maxSession": 5,
      "port": 5555,
      "register": true,
      "registerCycle": 5,
      "hub": "http://localhost:4444",
      "webdriver.chrome.driver":"&lt;path to chromedriver.exe&gt;"
      "nodeStatusCheckTimeout": 5,
      "nodePolling": 5,
      "role": "node",
      "unregisterIfStillDownAfter": 60,
      "downPollingLimit": 2,
      "debug": false,
      "servlets" : [],
      "withoutServlets": [],
      "custom": {}
  }
  </code></pre>
  
  <p>Simplyfied Java code:</p>
  
  <pre><code>DriverService service = null;
  ChromeOptions opts = new ChromeOptions();
  
  opts.addArguments("-incognito");
  opts.addArguments("--no-sandbox");      
  
  driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), opts);
  </code></pre>
  
  <p>On Java side:
  A long stacktrace (I think it's not necessary for this problem)</p>
  
  <p>On Node side:</p>
  
  <blockquote>
    <p>java -jar .\selenium-server-standalone-3.141.59.jar -role node
    -nodeConfig .\NodeConfig.json   15:39:56.377 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision:
    e82be7d358   15:39:56.513 INFO
    [GridLauncherV3.lambda$buildLaunchers$7] - Launching a Selenium Grid
    node on port 5555   2019-06-18 15:39:56.921:INFO::main: Logging
    initialized @807ms to org.seleniumhq.jetty9.util.log.StdErrLog<br>
    15:39:57.200 INFO [WebDriverServlet.] - Initialising
    WebDriverServlet   15:39:57.292 INFO [SeleniumServer.boot] - Selenium
    Server is up and running on port 5555   15:39:57.293 INFO
    [GridLauncherV3.lambda$buildLaunchers$7] - Selenium Grid node is up
    and ready to register to the hub   15:39:57.456 INFO
    [SelfRegisteringRemote$1.run] - Starting auto registration thread.
    Will try to register every 5 ms.   15:39:57.955 INFO
    [SelfRegisteringRemote.registerToHub] - Registering the node to the
    hub: <a href="http://localhost:4444/grid/register" rel="nofollow noreferrer">http://localhost:4444/grid/register</a>   15:39:58.106 INFO
    [SelfRegisteringRemote.registerToHub] - The node is registered to the
    hub and ready to use   15:40:06.931 INFO [ActiveSessionFactory.apply]
    - Capabilities are: {     "browserName": "chrome",     "goog:chromeOptions": {<br>
        "args": [<br>
          "-incognito",<br>
          "--no-sandbox"<br>
        ],
        "extensions": [<br>
        ],<br>
        "binary": "chromedriver.exe"     }   }   15:40:06.933 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory
    org.openqa.selenium.grid.session.remote.ServicedSession$Factory
    (provider: org.openqa.selenium.chrome.ChromeDriverService)   Starting
    ChromeDriver 75.0.3770.90
    (a6dcaf7e3ec6f70a194cc25e8149475c6590e025-refs/branch-heads/3770@{#1003})
    on port 21040   Only local connections are allowed.   Please protect
    ports used by ChromeDriver and related test frameworks to prevent
    access by malicious code.   Starting ChromeDriver 75.0.3770.90
    (a6dcaf7e3ec6f70a194cc25e8149475c6590e025-refs/branch-heads/3770@{#1003})
    on port 9515   Only local connections are allowed.   Please protect
    ports used by ChromeDriver and related test frameworks to prevent
    access by malicious code.   Invalid --log-level value.   Unable to
    initialize logging. Exiting...</p>
  </blockquote>
  
  <p>On Hub side:</p>
  
  <blockquote>
    <p>java -jar .\selenium-server-standalone-3.141.59.jar -role hub<br>
    15:39:50.884 INFO [GridLauncherV3.parse] - Selenium server version:
    3.141.59, revision: e82be7d358   15:39:51.000 INFO [GridLauncherV3.lambda$buildLaunchers$5] - Launching Selenium Grid hub
    on port 4444   2019-06-18 15:39:51.425:INFO::main: Logging initialized
    @805ms to org.seleniumhq.jetty9.util.log.StdErrLog   15:39:51.831 INFO
    [Hub.start] - Selenium Grid hub is up and running   15:39:51.832 INFO
    [Hub.start] - Nodes should register to http://%My  IP%:4444/grid/register/   15:39:51.832 INFO [Hub.start] - Clients
    should connect to <a href="http://%My" rel="nofollow noreferrer">http://%My</a>  IP%:4444/wd/hub   15:39:58.105 INFO
    [DefaultGridRegistry.add] - Registered a node http://:5555<br>
    15:40:06.623 INFO [RequestHandler.process] - Got a request to create a
    new session: Capabilities {browserName: chrome, goog:chromeOptions:
    {args: [-incognito, --no-sandbox], extensions: []}}   15:40:06.632
    INFO [TestSlot.getNewSession] - Trying to create a new session on test
    slot {chrome_binary=chromedriver.exe, nodeName=Local Chrome Node,
    server:CONFIG_UUID=186192e2-e951-4cef-b527-291aa9c0e2f5,
    seleniumProtocol=WebDriver, webdriver.chrome.driver=/chromedriver.exe, browserName=chrome, maxInstances=1,
    platformName=WINDOWS, version=75, platform=WINDOWS}</p>
  </blockquote>
  
  <p>So, how to sole this problem and configure logs on node side (I'd like to made it via .json file)</p>