Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
Guardar registro desde la consola de Chrome por JavaScript

Estoy escribiendo un complemento de monitoreo para el sitio web.

¿Es posible obtener registros y errores de la consola de Chrome mediante JavaScript?

Traté de anular el registro de la consola y otras funciones, pero solo registró registros generados por mi propio código.

También me gustaría capturar registros y errores generados por lib de terceros. por ejemplo, si estoy escribiendo un sitio web usando jQuery, también me gustaría recopilar todos los registros y errores generados por jquery.

Gracias

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

¿Qué tal probar esto? Puede modificar el archivo console.log global

 const overridedConsole = (function(originConsole){ return { log: function(text){ originConsole.log(text); // maybe save? }, info: function (text) { originConsole.info(text); // maybe save? }, warn: function (text) { originConsole.warn(text); // maybe save? }, error: function (text) { originConsole.error(text); // maybe save? } }; }(window.console)); //Then redefine the old console window.console = overridedConsole;
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!