Description
Use the chrome.systemLog
API to record Chrome system logs from extensions.
Permissions
systemLog
Availability
Types
MessageOptions
Properties
-
message
string
Methods
add()
Promise
chrome.systemLog.add(
options: MessageOptions,
callback?: function,
)
Adds a new log record.
Parameters
-
options
The logging options.
-
callback
function optional
The
callback
parameter looks like:() => void
Returns
-
Promise<void>
Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.