human
Complete this python program:
def log():
assistant
#Here is the Python program you requested.

    """Log Reader
    """
    if ('return' in get_vars):
        (c, f) = get_vars['return'].split('.', 1)
        list_btn = URL(c=c, f=f, args='sync_log')
    else:
        list_btn = URL(c='sync', f='log', vars=get_vars)
    list_btn = A(T('List    all    Entries'), _href=list_btn, _class='action-btn')
    def prep(r):
        if r.record:
            r.table.message.represent = (lambda msg: DIV(s3base.s3_strip_markup(msg), _class='message-body'))
        return True
    s3.prep = prep
    output = s3_rest_controller('sync', 'log', subtitle=None, rheader=s3base.S3SyncLog.rheader, list_btn=list_btn)
    return output