-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detailed logs #173
Comments
Hello, I think customizing the logger is what you're looking for. Let me know if it's not. |
So i need just to paste this peace of code? Because i doesn't see any file with logs in my folder. Could you provide working example? Of course if it possible. |
gremlins.js is capable of logging what it has done, but you will need to follow the stack trace determine what in your code caused the gremlin's action to generate an error. I recommend starting here: https://developers.google.com/web/tools/chrome-devtools/javascript/reference
That code allows you to adjust what is done when gremlins.js would normally log a message. For example, you could have the messages sent to an array and then the array could be save to a .txt file at the end of the run.
The default implementation only displays messages in the console. Anything beyond that is really outside of the scope of this project and is better suited for somewhere like stackoverflow. https://github.com/eligrey/FileSaver.js/ might be of help, but again, this really isn't the place for your question since it is very specific to your own project. This issue should be closed. |
🚨 The issue tracker is not for implementation questions 🚨
Is it possible to get detailed logs during testing? For example: while gremlins make chaos on my site, some error is logged to console, but i want to know what caused this error. I need to handle this by my own, or there are already implemented method for this?
The text was updated successfully, but these errors were encountered: