def set_log_level(level, handler=None):
from bambou import bambou_logger, pushcenter_logger<EOL>if handler is None:<EOL><INDENT>handler = logging.StreamHandler()<EOL><DEDENT>bambou_logger.setLevel(level)<EOL>bambou_logger.addHandler(handler)<EOL>pushcenter_logger.setLevel(level)<EOL>pushcenter_logger.addHandler(handler)<EOL>logger.setLevel(level)<EOL>logger.addHandler(handler)<EOL>
Set both tdldk and Bambou log level to the given level

        Args:
            level (logging.level): a logging level
            handler (logging.Handler): a logging handler

        Notes:
            if no handler is provided, it will automatically create a new StreamHandler.

        Examples:
            >>> set_log_level(logging.INFO)
            >>> set_log_level(logging.DEBUG, logging.Streamhandler())
            >>> set_log_level(logging.ERROR)