Implement sp_log op.
Start inserting logging instructions.