Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to activate Automatic Logging in Terminator?

I'm using Terminator (terminal emulator). I had to capture all the terminal logs and hence I set infinite-scroll ON but ultimately I found that actually it's not scrollable more than few hundred lines. The webpage says that there is a feature called "Automatic Logging" but it says no more words about it i.e how to enable it and where to search for the log (location of the log file). Please help me for the same.

Thank you!

like image 252
aroyc Avatar asked Dec 26 '15 16:12

aroyc


2 Answers

Right click on terminator screen Click Preferences Go to Plugins tab Enable Logger Click close

Right Click on terminator screen again Click start logger

like image 175
Kevin Cheung Avatar answered Nov 11 '22 08:11

Kevin Cheung


  1. Right-Click on the screen in Terminator --> "Preferences" --> click the "Plugins" tab --> check the box for "Logger" --> click "Close".

    enter image description here

  2. Right-Click on the screen --> "Start Logger":

    enter image description here

    It will now bring up a window to ask you where you want to save your log file. Save it wherever you want. Ex: ~/logs/terminator.log.

  3. Now, use the terminal as normal, and pretty much everything, including both commands and output (but not sub-shells and things I believe), will be logged. See here for the minimal official documentation on the logger: https://terminator-gtk3.readthedocs.io/en/latest/plugins.html#logger.

  4. When done, Right-Click on the screen --> "Stop Logger".

    CAUTION: IF YOU JUST CLOSE THE WINDOW OR SOMETHING INSTEAD OF MANUALLY STOPPING THE LOGGER VIA THE MENU, YOU WILL LOSE ALMOST ALL, OR ALL, OF THE LOGGING CONTENT. This is silly, and should be fixed, but you'd have to go report a bug or feature request, and I don't feel like it, so...you do it please.

References:

  1. How to activate Automatic Logging in Terminator?
  2. Terminator official documentation (accessed via Right-Click --> Preferences --> Help): https://terminator-gtk3.readthedocs.io/en/latest/
    1. Official Logger documentation: https://terminator-gtk3.readthedocs.io/en/latest/plugins.html#logger

      enter image description here

like image 20
Gabriel Staples Avatar answered Nov 11 '22 07:11

Gabriel Staples