import logging.config
import os

path = os.path.dirname(os.path.abspath(__file__))
logging.config.fileConfig(
    fname=os.path.join(str(path), os.pardir, os.pardir,
                       os.pardir, 'logging.conf'),
    disable_existing_loggers=False)
logger = logging.getLogger(__name__)


class HeaderLogger:

    @staticmethod
    def log_header_differences(headers_differences, rec_files_list):
        if headers_differences:
            message = 'Rec files: ' + \
                str(rec_files_list) + ' contain inconsistent xml headers!'
            logger.warning(message)

import logging.config
import os

path = os.path.dirname(os.path.abspath(__file__))
logging.config.fileConfig(
    fname=os.path.join(str(path), os.pardir, os.pardir,
                       os.pardir, 'logging.conf'),
    disable_existing_loggers=False)
logger = logging.getLogger(__name__)


class HeaderLogger:

    @staticmethod
    def log_header_differences(headers_differences, rec_files_list):
        if headers_differences:
            message = 'Rec files: ' + \
                str(rec_files_list) + ' contain inconsistent xml headers!'
            logger.warning(message)
