<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def time_logger(name):
 """This logs the time usage of a code block"""

    start_time = time.time()
    yield
    end_time = time.time()
    total_time = end_time - start_time

    logging.info("%s; time: %ss", name, total_time)