Logging for sessions.

LMS-6630
Please split across multiple lines.