Пример #1
0
 def __set_memory(self, val):
     _modeller.mod_log_set(4, val)
Пример #2
0
 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)
Пример #3
0
 def __set_errors(self, val):
     _modeller.mod_log_set(3, val)
Пример #4
0
 def __set_warnings(self, val):
     _modeller.mod_log_set(2, val)
Пример #5
0
 def __set_notes(self, val):
     _modeller.mod_log_set(1, val)
Пример #6
0
 def __set_output(self, val):
     _modeller.mod_log_set(0, val)
Пример #7
0
 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)