<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def add_date(log):
    '''Userful for randomizing the name of a log'''
    return '{base} - {time}.log'.format(
			base=os.path.splitext(log)[0],
			time=strftime("%a, %d %b %Y %H-%M-%S", gmtime()))