Bug 239035 - [WISH]: Add the ability to log output in konsole
Summary: [WISH]: Add the ability to log output in konsole
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.4.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 18:59 UTC by Brian Beck
Modified: 2010-05-27 19:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
PuTTY logging options (141.98 KB, image/png)
2010-05-27 18:59 UTC, Brian Beck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Beck 2010-05-27 18:59:53 UTC
Created attachment 43950 [details]
PuTTY logging options

Version:           2.4.3 (using KDE 4.4.3) 
OS:                Linux

I was wondering if it would be feasible to add the ability to log output of konsole to a text file?  This feature would be similar to the way that PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) allows you to log output.

logging could be turned on and off, perhaps even a line could appear in the konsole window indicating the logging had begun or stopped.  e.g:

[user is doing some work, and decides to begin logging, button is presed]
-------- LOGGING ENABLED ( /home/bbeck/konsle_logs/2010-05-27.00001.log --------
$ cat whatever.txt
$ rm whatever.txt
[user turns logging off, button is pressed]
-------- LOGGING DISABLED ( /home/bbeck/konsle_logs/2010-05-27.00001.log -------

I feel that this would be very helpful when doing any type of system maintenance , also some organizations have policy that work done on a production system is to be logged.

I have attached a screenshot of the PuTTY logging options to give you an idea of how that particular program handles logging.

This is only a wish item, so if it's not possible, already implemented elsewhere, or just a dumb idea don't hesitate to close this ticket.

Thanks.

Reproducible: Didn't try
Comment 1 Sascha Peilicke 2010-05-27 19:25:25 UTC
Isn't that what your favorite $SHELL does anyway? At least both bash and zsh have a history file by default. I don't believe that this makes any sense within Konsole itself, these logfiles would have to be rotated or have a size limit. Otherwise they will fill your hard disk when you forget about that "feature".
Comment 2 Brian Beck 2010-05-27 19:34:33 UTC
Oh, I think you misunderstand, it's not just a history of commands, it's a history of the output too.  That way I have a record of what I did and what the result was.

As for it filling a hard drive, I was imagining the feature more in terms of the record button on a VCR.  Press the button record the output.  We don't worry that a user might write too much in Kate, and therefore we shouldn't offer the ability to save documents.  :)

But like I said, it was just a wish, and you're free to close it for whatever reason you like.

Cheers,
Brian
Comment 3 Brian Beck 2010-05-27 19:40:07 UTC
Oops! Sorry, Konsole already has this feature.  (awesome!)

Scrollback -> "Save Output..."