import sys
import logging.config
import os.path
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
import config

log_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '/logfolder/logging.conf')

logging.config.fileConfig('log_file_path', disable_existing_loggers=False)

sys.path.insert(0, "/var/www/html/frontend")

logging.info('Started')
from similar_vids_frontend import app as application
application.secret_key = config.WSGI_KEY
logging.info('Finished')

import sys
import logging.config
import os.path
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
import config

log_file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '/logfolder/logging.conf')

logging.config.fileConfig('log_file_path')

sys.path.insert(0, "/var/www/html/frontend")

logging.info('Started')
from similar_vids_frontend import app as application
application.secret_key = config.WSGI_KEY
logging.info('Finished')

remove formatters statement