Configures logging to use the :class:`SizeRotatingFileHandler`

def configure_file_logger(name, log_dir, log_level=logging.DEBUG):
    """Configures logging to use the :class:`SizeRotatingFileHandler`"""
    from .srothandler import SizeRotatingFileHandler

    root = logging.getLogger()
    root.setLevel(log_level)
    handler = SizeRotatingFileHandler(os.path.join(log_dir, '%s.log' % name))
    handler.setLevel(log_level)
    handler.setFormatter(logging.Formatter(LOG_FORMAT_STANDARD))

    root.addHandler(handler)