Skip to content
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

Need a way to copy full log text #356

Closed
spadgett opened this issue Aug 12, 2016 · 7 comments
Closed

Need a way to copy full log text #356

spadgett opened this issue Aug 12, 2016 · 7 comments

Comments

@spadgett
Copy link
Member

For logs with thousands of lines, it's very annoying to select the text manually in the web console. It would be nice to provide a link that either copies the content or at least selects it for the user.

@jhadvig
Copy link
Member

jhadvig commented Aug 18, 2016

Would the selection select only the last thousand lines that we currently display ?

@spadgett
Copy link
Member Author

Yeah, I think so. I'm not sure we'd want to copy more to the clipboard. We did increase the limit to 5000 lines

@jhadvig
Copy link
Member

jhadvig commented Aug 18, 2016

Yeah true that.
Would be great to have a way how to download the whole log as a text file && copy to clipboard just the lines that we actually render.
Maybe a Get logs drowpdown btn that would display two options:

  1. Download full log
  2. Copy displayed log

Although not sure about the wording

@spadgett
Copy link
Member Author

Yeah the original designs had a download log / open as plain text, but we didn't have a good way to authenticate and serve the content as plain text.

@benjaminapetersen
Copy link
Contributor

Simplest way I could think of is save the log in session storage, then load a sibling log.html file, read it out and write it out in a <pre> and be done with it. Not sure if that seems too simplistic though.

@spadgett
Copy link
Member Author

I was thinking of clipboard.js, although not sure how well it would work with tables and line numbers.

@spadgett
Copy link
Member Author

Or even a "Select all" link that highlighted the log content. That would work on mobile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants