Is there any way to get Chrome's debug_log to standard output?

Viewed 23

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/

0 Answers
Related