fix log tag output, and add mf_set_debug_level().