Is there a way to log a session to a text file?

Is there a way to output a session to a log...? I'm having trouble with my ftp account via my webhost, and would like to be able to show them the entire contents of the session log, which can be quite lengthy... Is there a way to output the entire session log to a text file?

-min.