Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

console.log

  1. J

    JavaScript console.log redirection works once, but subsequent attempts fail

    I am overwriting console.log so that I can observe an event and take action on it. This is done via go, when I launch a new tab by clicking a link, so it happens quickly. window.originalLog = console.log; window.capturedLogs = []; console.log = (...args) => { window.capturedLogs.push(...args)...
Back
Top Bottom