Community
Participate
Working Groups
I want to add the ability to log incoming data in the terminal view to a file.
Created attachment 178564 [details] This patch implements the logging facility Add logging to org.eclipse.tm.terminal Add toolbar button to org.eclipse.tm.terminal.view
Created attachment 178565 [details] Toolbar icon
Nice :) See also bug 209875 for an earlier request for the same. In the patch, your API addition seems to require a bit more thought though. Why do you define a "LoggingOutputStream" when it really just is a FilterOutputStream?
(In reply to comment #3) > Nice :) > > See also bug 209875 for an earlier request for the same. > > In the patch, your API addition seems to require a bit more thought though. Why > do you define a "LoggingOutputStream" when it really just is a > FilterOutputStream? Because with a FilterOutputStream you can set it's OutputStream only in the constructor. The View that creates the Filter has no access to that OutputStream. I'm open for any other implementation, it was just the most obvious for me.
This patch is quite old so might be a nightmare to apply now that we have Terminal 4.0 ... but the problem that it fixes is potentially still relevant. I've seen multiple requests for logging Terminal input to a file (and also replaying that file to Terminal output). Any thoughts on potentially reviving this ?
Hi Martin, the request is still valid and it would be really nice to have a kind of logging facility. I think this request is worth investing. The patch itself will have to be reworked very likely for TM Terminal 4.0 or there might be even a differnt approach to logging.
The Terminal component of the Eclipse Ecosystem has a new home. The Terminal is now part of the Eclipse CDT project[1]. This change means a new Git repo[2], P2 site[3] and Bugzilla component. The terminal will continue to be delivered as part of the quarterly Simultaneous Release of Eclipse as well. The marketplace entry[4] had not been updated in a few years. It will once again install the latest release of the terminal on the latest release of the whole IDE (currently 2020-03). If this bug is no longer relevant, please feel free to comment or close the bug. If you can confirm if this issues still occurs in the latest release please do let me know in a comment. [1] https://wiki.eclipse.org/CDT/User/NewIn911 [2] https://git.eclipse.org/c/cdt/org.eclipse.cdt.git (in the terminal directory) [3] current release is 9.11 - P2 site https://download.eclipse.org/tools/cdt/releases/9.11/ [4] https://marketplace.eclipse.org/content/tm-terminal (This comment was added to all open terminal bugs along with changing the Product/component pair to CDT/terminal.)