logTransaction()