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:
<script
data-chromelogger-version="1.0"
data-chromelogger-columns="log,backtrace,type"
data-chromelogger-rows="var_name"
>
var var_name = [[log, backtrace, type],...];
</script>
Attributes data-chromelogger-version
and data-chromelogger-columns
are optional and default to the values shown if missing. Or log the entire data object that would've otherwise been the base64-encoded header value:
<script data-chromelogger-data="var_name">
var var_name = { ChromeLoggerData Object };
</script>