Added Session::logMessage().