Skip to content

Intercept console.logs from a website and send it to a seperate logger

License

Notifications You must be signed in to change notification settings

ronaldvandenbroek/console-log-interceptor

Repository files navigation

console-log-interceptor

Tests + Linting Known Vulnerabilities FOSSA Status Renovate

Intercept console.logs from a website and send it to a seperate logger

inject.js

Code used to override the console.log() function in the browser. This code can be used by copy-pasting it in the browser console of the site you want to intercept the logs from.

Config

To configure the code edit the following variables before copy-pasting it into the browser console.

// Url of the monitor server.
var monitorUrl = 'http://localhost:8888/log';
// Check if you want the browser to still log as normal or skip that step.
var logOriginal = true;

log-monitor

The monitoring server, can either be used standalone by using the command npm run start. Or used as a package within another application.

About

Intercept console.logs from a website and send it to a seperate logger

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •