question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve Copy / Paste on new Logging View

See original GitHub issue

Hey hey 😃 I’ve been trying out the new logging view and wanted to provide a bit of feedback wrt copying and pasting logged messages. It’s a pretty common task when running into bugs in a larger app where another team might be responsible for the feature you’re navigating through and you encounter an error. I might want to create a new ticket with the StackTrace, or paste it into slack for discussion.

Issue 1: Use cmd+c to copy a log Message

  1. Enable new logging view (applies to all of these)
  2. Run the app
  3. See a log message or many messages you’re interested in copying
  4. Highlight it and press cmd+c to copy
  5. Get output like this when pasting:
io.flutter.logging.FlutterLogEntry@76b5b7da | io.flutter.logging.FlutterLogEntry@76b5b7da | io.flutter.logging.FlutterLogEntry@76b5b7da | io.flutter.logging.FlutterLogEntry@76b5b7da
-- | -- | -- | --

Workaround: Secondary-click on the message, click “Copy asText”. This now produces a result I was expecting:

13:30:48.572 2508 800 flutter.tools Restarted app in 1,230ms.

or with multiple lines:

13:30:48.572 2508 800 flutter.tools Restarted app in 1,230ms.
13:30:47.834 2509 400 runtime.gc collection time 1ms • 26.2MB used of 27.2MB • isolates/21837764
13:30:48.007 2510 400 runtime.gc collection time 2ms • 30.0MB used of 31.2MB • isolates/21837764

Issue 2: Copy a portion of the message

Say I want to filer down to a specific message. Rather than typing it in (error-prone, sometimes long), it’d be great to copy only a portion of the message rather than “Copy as Text” and have to remove the bits I don’t want.

  1. Run app with new logging view
  2. Attempt to select only a portion of the logged message, e.g. I wanted to copy “Restarted app” from the message “Restarted app in 1,230ms.”
  3. Can’t quite see a way to do this

Thanks for all the hard work and community effort on this feature!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
brianegancommented, Sep 13, 2018

Yep! This provided the functionality I was looking for 😃

1reaction
quangson91commented, Jul 9, 2018

@pq, @brianegan, I created a new PR: https://github.com/flutter/flutter-intellij/pull/2473 with two features:

  • support copy a part of the log.
  • support search a part of the log with Google.
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to log clipboard entries on Windows 10 - YouTube
ClipLogger can maintain a log of all text that's copied to your clipboard. Since it is a text -based log, any file that...
Read more >
iOS 16.1 Introduces New Copy-and-Paste Permission Settings ...
Last month, an Apple engineer said the copy-and-paste permission prompt only appears when an app attempts to access the clipboard directly. The ...
Read more >
Logging Copy and Paste Activity - VMware Docs
The event log where information about copy and paste activity is recorded is named VMware Horizon RX Audit. To view the event log...
Read more >
How to Copy and Paste Multiple Items at Once - Zapier
Something's somewhere, and you want it someplace else, so you copy it then paste it in the new place—a modern version of Xeroxing...
Read more >
Copy log entries to other applications using the clipboard
To place a selection on the clipboard in CSV (comma-separated values) format, select Copy As > CSV Text from the Edit menu. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found