If you fail the practical driving test, you don't need to record any more log book hours. However, you should consider getting more driving practice to help you pass your next test.
You can book another driving test straight away, but you'll need to wait at least 7 days between your last test and the next.