(module, number, file_loc=None, toggle=False)
Toggle the logger of a module
       @param module is the module number
       @param number is the session number
       @param file_loc is a string containing the file path
       @param toggle is True to turn on logging or False to turn off
Toggle the logger of a module
Toggle the logger of a module
def toggle_log(module, number, file_loc=None, toggle=False):
    """Toggle the logger of a module
       @param module is the module number
       @param number is the session number
       @param file_loc is a string containing the file path
       @param toggle is True to turn on logging or False to turn off
    """
    (mod, mod_inst) = get_mod_num(module, number)
    if not mod is None and not mod_inst is None and hasattr(HOUSE[mod][mod_inst], 'log'):
        if toggle:
            # enable
            HOUSE[mod][mod_inst].log(True, file_loc)
        else:
            # disable
            HOUSE[mod][mod_inst].log(False)
    else:
        Error('Module does not have a logger or doesn\'t exist.')
def toggle_log ( module , number , file_loc = None , toggle = False ) : ( mod , mod_inst ) = get_mod_num ( module , number ) if not mod is None and not mod_inst is None and hasattr ( HOUSE [ mod ] [ mod_inst ] , 'log' ) : if toggle : # enable HOUSE [ mod ] [ mod_inst ] . log ( True , file_loc ) else : # disable HOUSE [ mod ] [ mod_inst ] . log ( False ) else : Error ( 'Module does not have a logger or doesn\'t exist.' )