import time


def log_tail(contents=''):
    """return a string, which can be write to the tail of a log files"""
    s = '================================================================\n'
    s += '[time]   ' + time.asctime(time.localtime()) + '\n'
    s += '[program finish succeed!]\n'
    s += contents
    s += '===============================================================\n'
    return s