def __set_memory(self, val): _modeller.mod_log_set(4, val)
def _set_output_control(self, vals): """Set the current set of log levels (OUTPUT_CONTROL)""" for (indx, val) in enumerate(vals): _modeller.mod_log_set(indx, val)
def __set_errors(self, val): _modeller.mod_log_set(3, val)
def __set_warnings(self, val): _modeller.mod_log_set(2, val)
def __set_notes(self, val): _modeller.mod_log_set(1, val)
def __set_output(self, val): _modeller.mod_log_set(0, val)
def level(self, output=1, notes=0, warnings=0, errors=1, memory=0): """Set the logging level - i.e. which messages to output""" for (indx, val) in enumerate((output, notes, warnings, errors, memory)): _modeller.mod_log_set(indx, val)