Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--enable-logging

What does --enable-logging do?

Force logging to be enabled. Logging is disabled by default in release builds.

Usage

CLILaunch Chrome with --enable-logging using CLI

chrome --enable-logging

PuppeteerLaunch Chrome with --enable-logging using Puppeteer

const browser = await puppeteer.launch({
  args: ['--enable-logging']
});

PlaywrightLaunch Chrome with --enable-logging using Playwright

const browser = await chromium.launch({
  args: ['--enable-logging']
});

SeleniumLaunch Chrome with --enable-logging using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-logging')

driver = webdriver.Chrome(options=options)