def make_api_logger():
    # Circular import dependency problem
    # we import logger module in settings
    from nailgun.settings import settings

    logger = logging.getLogger("nailgun-api")
    log_file = WatchedFileHandler(settings.API_LOG)
    set_logger(logger, log_file)
    return logger
Make logger for REST API writes logs to the file
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/logger.py/make_api_logger