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:
   HOUSE[mod][mod_inst].log(True, file_loc)
  else:
   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 : HOUSE [ mod ] [ mod_inst ] . log ( True , file_loc ) else : HOUSE [ mod ] [ mod_inst ] . log ( False ) else : Error ( "Module does not have a logger or doesn't exist." )
toggle the logger of a module .