Open putty and go to Session->Logging. Select all session output and specify a log file.
“&H-&Y&M&D-&T.log” this putty parameter will make every session logfile unique by default.
- &H = hostname for the session
- &Y = year
- &M = month
- &D = day
- &T = time