How to use the bigflow.util.log.logger function in bigflow

To help you get started, we’ve selected a few bigflow examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github baidu / bigflow / bigflow_python / python / bigflow / pipeline / pipeline_base.py View on Github external
def _handle_new_writtens(self):
        if len(self._uri_to_write) > 0:
            logger.info("=========================================================")
            logger.info("all outputs:")
            for uri in self._uri_to_write:
                logger.info("\t%s" % uri)
            self._uri_to_write[:] = []
github baidu / bigflow / bigflow_python / python / bigflow / pipeline / pipeline_base.py View on Github external
def _print_counters(self):
        # print counters after run
        c_dict = counter._get_all(grouped=True)
        if len(c_dict) > 0:
            logger.info("=========================================================")
            logger.info("all counters:")
            for group in sorted(c_dict.iterkeys()):
                logger.info("\t%s:" % group)
                for k, v in c_dict[group].iteritems():
                    logger.info("\t\t%s=%d" % (k, v))