예제 #1
0
 def report_invalid_syntax(self, message, level='ERROR', parent=None):
     parent = parent or getattr(self, 'parent', None)
     if parent:
         parent.report_invalid_syntax(message, level)
     else:
         from robotide.lib.robot.api import logger
         logger.write(message, level)
예제 #2
0
 def report_invalid_syntax(self, message, level='ERROR', parent=None):
     parent = parent or getattr(self, 'parent', None)
     if parent:
         parent.report_invalid_syntax(message, level)
     else:
         from robotide.lib.robot.api import logger
         logger.write(message, level)
    def log_dictionary(self, dictionary, level='INFO'):
        """Logs the size and contents of the ``dictionary`` using given ``level``.

        Valid levels are TRACE, DEBUG, INFO (default), and WARN.

        If you only want to log the size, use keyword `Get Length` from
        the BuiltIn library.
        """
        logger.write('\n'.join(self._log_dictionary(dictionary)), level)
    def log_list(self, list_, level='INFO'):
        """Logs the length and contents of the ``list`` using given ``level``.

        Valid levels are TRACE, DEBUG, INFO (default), and WARN.

        If you only want to the length, use keyword `Get Length` from
        the BuiltIn library.
        """
        logger.write('\n'.join(self._log_list(list_)), level)
예제 #5
0
파일: Collections.py 프로젝트: Garjy/RIDE
    def log_dictionary(self, dictionary, level='INFO'):
        """Logs the size and contents of the ``dictionary`` using given ``level``.

        Valid levels are TRACE, DEBUG, INFO (default), and WARN.

        If you only want to log the size, use keyword `Get Length` from
        the BuiltIn library.
        """
        logger.write('\n'.join(self._log_dictionary(dictionary)), level)
예제 #6
0
파일: Collections.py 프로젝트: Garjy/RIDE
    def log_list(self, list_, level='INFO'):
        """Logs the length and contents of the ``list`` using given ``level``.

        Valid levels are TRACE, DEBUG, INFO (default), and WARN.

        If you only want to the length, use keyword `Get Length` from
        the BuiltIn library.
        """
        logger.write('\n'.join(self._log_list(list_)), level)