Chrome Flags Reference

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

--disable-logging

What does --disable-logging do?

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

Usage

CLILaunch Chrome with --disable-logging using CLI

chrome --disable-logging

PuppeteerLaunch Chrome with --disable-logging using Puppeteer

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

PlaywrightLaunch Chrome with --disable-logging using Playwright

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

SeleniumLaunch Chrome with --disable-logging using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)