Example #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)
Example #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)
Example #5
0
    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)
Example #6
0
    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)