How to use the lighthouse-logger.events function in lighthouse-logger

To help you get started, we’ve selected a few lighthouse-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GoogleChrome / lighthouse / clients / extension / scripts / extension-entry.js View on Github external
function listenForStatus(listenCallback) {
  log.events.addListener('status', function(log) {
    latestStatusLog = log;
    listenCallback(log);
  });

  // Show latest saved status log to give immediate feedback
  // when reopening the popup message when lighthouse is running
  if (lighthouseIsRunning && latestStatusLog) {
    listenCallback(latestStatusLog);
  }
}
github GoogleChrome / lighthouse / clients / devtools-entry.js View on Github external
function listenForStatus(listenCallback) {
  log.events.addListener('status', listenCallback);
}