And, when you click on it, the button changes colors and displays a message!
Why was it changed?
I (and probably many users) need to copy/paste the logs. Using Ctrl+A selects too much stuff, and scrolling up and down the page is a lot of effort. I added this button to make it easier and quicker to copy/paste the logs.
How was it changed?
When the button is clicked, it loops through all of the children inside of the log container. It grabs the visible elements, appends them together, and adds it to your clipboard.
Testing:
I clicked the button in the following cases:
When there are no logs. I pasted my clipboard into a text editor and it was empty.
When there are logs with an exception, INFO selected. I pasted my clipboard into a text editor and the full logs are copied.
When there are logs with an exception, ERROR selected. I pasted my clipboard into a text editor are none of the INFO logs show up.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
What was changed?
The sample. Added a button to copy the logs.
It also has a tooltip:
And, when you click on it, the button changes colors and displays a message!
Why was it changed?
I (and probably many users) need to copy/paste the logs. Using Ctrl+A selects too much stuff, and scrolling up and down the page is a lot of effort. I added this button to make it easier and quicker to copy/paste the logs.
How was it changed?
When the button is clicked, it loops through all of the children inside of the log container. It grabs the visible elements, appends them together, and adds it to your clipboard.
Testing:
I clicked the button in the following cases:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.