chrome.systemLog

Description

Use the chrome.systemLog API to record Chrome system logs from extensions.

Permissions

systemLog

Availability

Chrome 125+ ChromeOS only Requires policy

Types

MessageOptions

Properties

  • message

    string

Methods

add()

Promise
chrome.systemLog.add(
options: MessageOptions ,
callback?: function,
)
: Promise<void>

Adds a new log record.

Parameters

  • options

    The logging options.

  • callback

    function optional

    The callback parameter looks like:

    () => void

Returns

  • Promise<void>

    Returns a Promise which resolves once the log has been added.

    Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年01月07日 UTC.