def write_log(level, fmtstr, *args):
    s = NAME + ' [' + level + '] ' + (fmtstr % args)
    if DEBUG:
        OutputDebugStringW(s)
    with g_lock:
        print(s)
dataset/ETHPy150Open timonwong/OmniMarkupPreviewer/OmniMarkupLib/log.py/write_log/original