I would like to log session with byobu. I wen through the configuration files but I could not see anything like log session etc. I want byobu to log my session as soon as launch it with date. :)
Asked
Active
Viewed 1,632 times
2
1 Answers
3
Sessions are automatically logged (up to 10,000 lines per windows).
You can "scrollback" any time by pressing Alt-PgUp and Alt-PgDn. Note that you're in "vi mode", so you can also search for strings using / and ?. Press Enter to exit.
Now, you can also save that window to a file by pressing Shift-F7, which will write the buffer to $BYOBU_RUN_DIR/printscreen
.
Full disclosure: I am the author and maintainer of Byobu.

heemayl
- 91,753

Dustin Kirkland
- 14,608
-
Sorry, deleted the sentence fragment. Shouldn't have been there ;-) – Dustin Kirkland Oct 27 '17 at 21:34
-
Thank you Dustin for the answer. Do you have future plans to develop to add an option where we can set the flag and each time we start byobu it starts writing log to a file? Another question is it possible to increase the buffer more than 10000 lines? Thanks – Halit Sakca Oct 29 '17 at 09:24
-
Actually, as of Byobu 5.116, it logs 100K lines per window. You can change this easily in your ~/.byobu/.tmux.conf by adding a line with "set-option -g history-limit 100000" or however many you like. – Dustin Kirkland Oct 30 '17 at 14:09
-
@DustinKirkland does it autoreload this setting in an existing byobu session? – Dr Krishnakumar Gopalakrishnan May 02 '18 at 18:12
screen
however for the moment shitt + F7 solves my requirement better so I mark down @dustin's answer as answer – Halit Sakca Oct 29 '17 at 09:28