You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a custom logger in my frontend to send logs server side for analysis. Unfortunately I'm unable to record any rrweb debug logging since it uses a console.log with no way to override it:
It'd be nice if there was an option for passing a custom function that would be called instead. Ideally the call happens before the showDebug check so that we can implement custom logic for showDebug instead of having to call setConfig to update it.
The text was updated successfully, but these errors were encountered:
Do I have to replace the warn log... with the custom logger?
For my use case, that would be ideal. I'm trying to send rrweb logs to my server so that we can debug issues in production, so I'd like any and all logs to be accessible.
I use a custom logger in my frontend to send logs server side for analysis. Unfortunately I'm unable to record any rrweb debug logging since it uses a
console.log
with no way to override it:rrweb/packages/rrweb/src/replay/index.ts
Lines 1892 to 1899 in f756790
It'd be nice if there was an option for passing a custom function that would be called instead. Ideally the call happens before the
showDebug
check so that we can implement custom logic forshowDebug
instead of having to callsetConfig
to update it.The text was updated successfully, but these errors were encountered: