Time should be logged after any task is performed pertaining to the engagement. Time should be logged at the end of each day, as opposed to filling in hours at the end of the week, or near the end of the pay period.
Time summaries are sent to the Client on a weekly basis, so it is important they see how you are spending your time in real time to avoid unexpected back billing at the end of the month.