WebExtension implementing Chrome Logger protocol for Firefox.
Console output is automatically styled from settings unless non-escaped string substitutions are detected in the message being logged.
To log data to the web console through this extension after headers have been sent, the following methods are supported.
Log the entire ChromeLoggerData object that would've otherwise been the base64-encoded header value.
<script
id="chromelogger"
type="application/json"
>{ ChromeLoggerData object }</script>
Or just log the rows
array of the ChromeLoggerData object. Attributes data-chromelogger-version
and data-chromelogger-columns
are optional and default to the values shown if missing.
<script
id="chromelogger"
type="application/json"
data-chromelogger-version="2.0"
data-chromelogger-columns="log,backtrace,type"
>[ ChromeLoggerData.rows array ]</script>
<script>
values must be valid JSON or error is thrown.