示例#1
0
def log_entry(*args):
    # For now, just printing (and dumbed down for CMD, just in case)
    global log_entries
    log_entries += 1
    old_print("%d: @%d" % (log_entries, 1000 * perf_counter()), end=" ")
    s_ref = "[%d]" % log_entries

    args = [make_printable(str(arg), errors="backslashreplace") for arg in args]

    print(*args)

    return s_ref