Logged session in Linux SSH client

adapted from http://www.inatick.com/2008/05/creating-a-bash-shell-alias-with-arguments/

just create a file called putty in $HOME/bin/

[putty]
#!/bin/sh
ssh "$1" | tee -ai ${HOME}/Logs/`date +"%Y%m%d-%H%M%S"`_"$1".log;

Logs will be inside $HOME/Logs/
Usage:
1. putty username@server in terminal
2. Can be adapted to menu-launcher
Example desktop entry