You can retrieve the current levels of SM_System::SM-System::logLevel, SM_System::SM-System::errLevel, or SM_System::SM-System::traceLevel. A string is returned which represents the current level, such as "Warning", "Error", or "Fatal". For example:

sm_system = object("SM_System", "SM-System");
curr_error_level = sm_system->errLevel;