An easy way to do this is start a “script” session using a nifty program called script.
It basically puts you in a virtual terminal and records everything you type and the corresponding output.
script -a /home/user/bashlog.txt
Then just type exit when you want to stop logging.