Define a table variable, then insert the error information into the table variables first. After you issue the rollback, then insert the information from the table variable into your error log table.
The table variables are not affected by transactions.