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
There is not, but you can add this fairly easily yourself with the plugin API: https://github.com/pimterry/loglevel#plugins. For the reasons described in there, I don't want to add this to loglevel directly.
Assuming that by sending to a variable you mean calling another function with it, you could do this yourself with something like:
// Your code:varerrorMessageListener=function(message){// do something with the message};// Plugin:varoriginalFactory=log.methodFactory;log.methodFactory=function(methodName,logLevel){varrawMethod=originalFactory(methodName,logLevel);returnfunction(message){errorMessageListener(message);rawMethod(message);};};
Is there any way to send the error message simultaneously to a variable for generating a bug report?
The text was updated successfully, but these errors were encountered: