0

When running Chrome with webdriverio, I want to get the debug logs of Chrome itself, so I enabled --enable-logging.

const browser = await remote({
  capabilities: {
    browserName: "chrome",
    "goog:chromeOptions": {
      args: [
        "--no-sandbox",
        "--enable-logging=stderr",
      ] 
    }
  },
  logLevel: "info",
});

I expected the error to be output to stderr, but contrary to my expectations, it was output as chorme_debug.log in the user data directory.

Is there any way to output chrome debug logs to stdout or stderr instead of a file?

I searched the Chromium documentation, but this was the only description of logging. https://www.chromium.org/for-testers/enable-logging/

  • Does this answer your question? [In Chrome, how can I get the javascript console output to stdout/stderr](https://stackoverflow.com/questions/39099353/in-chrome-how-can-i-get-the-javascript-console-output-to-stdout-stderr) – Asesh Sep 10 '22 at 03:36

0 Answers0