UberLogger
UberLogger copied to clipboard
Copy messages and stacktrace into clipboard
As far as I could tell there is no support for copying/pasting from the message & stacktrace windows into the clipboard. This would also be highly useful.
Suggested designs below. UI feedback appreciated!
Always copy everything At its simplest, pressing Ctrl-C when either the messages window or stacktrace window is active, the entire contents of the window would be copied to the clipboard (with current filter applied).
Copy 1 line or everything A more advanced implementation would allow for different selection modes: either one entry (the currently-selected) or all. Pressing Ctrl-A would mark everything in the window, and copying when all is selected would copy the entire window contents. Performing any kind of navigation in the window when all is selected, results in just a single line being selected again.
Copy 1 line, one or more ranges, or everything This could be taken yet further by supporting shift-click and ctrl-click to mark/unmark which entries are part of the selection. Shift-clicking is the more useful of the two; it allows for copy/pasting a range from the window.
https://github.com/Kalmalyzer/UberLogger/tree/copy-all-to-clipboard-in-editor is a proof-of-concept implementation for the "Always copy everything" mechanism for the editor window. (See latest two commits) What do you think of this -- good enough for a first step?
You use Shift-C to trigger the copy because I haven't found a way to intercept Ctrl-C events within the Unity editor yet (as far as I can tell Ctrl-C does not result in OnGUI being triggered with Event information set as expected).
All lines that were included according to the channels/text-pattern filter will be copied. They are formatted as "
If a log line has been selected then the currently-displayed callstack is also included.
Shift-C has no effect in the application window.