--log-file
What does --log-file do?
Overrides the default file name to use for general-purpose logging (does not affect which events are logged).
Usage
CLILaunch Chrome with --log-file using CLI
chrome --log-filePuppeteerLaunch Chrome with --log-file using Puppeteer
const browser = await puppeteer.launch({
args: ['--log-file']
});PlaywrightLaunch Chrome with --log-file using Playwright
const browser = await chromium.launch({
args: ['--log-file']
});SeleniumLaunch Chrome with --log-file using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--log-file')
driver = webdriver.Chrome(options=options)Build Conditions
LOAD_WEBUI_FROM_DISK