Chrome Flags Reference

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

--log-level

What does --log-level do?

Sets the minimum log level. Valid values are from 0 to 3: INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.

Usage

CLILaunch Chrome with --log-level using CLI

chrome --log-level

PuppeteerLaunch Chrome with --log-level using Puppeteer

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

PlaywrightLaunch Chrome with --log-level using Playwright

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

SeleniumLaunch Chrome with --log-level using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--log-level')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK