def __init__(self, namespace, type, filename=None, level=None):

        # variables
        self.logger_bool = True
        log_type = type.lower()
        logger_level = level.lower()
        handler_level = LOG_LEVEL.lower()

        # log type
        if log_type == 'database':
            self.log_path = DB_LOG_PATH
            self.log_filename = 'database.log'
        elif log_type == 'error':
            self.log_path = ERROR_LOG_PATH
            log_type = 'ERROR'
        elif log_type == 'warning':
            self.log_path = WARNING_LOG_PATH
            log_type = 'WARNING'
        elif log_type == 'info':
            self.log_path = INFO_LOG_PATH
            log_type = 'INFO'
        elif log_type == 'debug':
            self.log_path = DEBUG_LOG_PATH
            log_type = 'DEBUG'
        else:
            self.logger_bool = False
            self.log_namespace = namespace
            self.log_warning = 'log type not properly set'

        # handler level: application wide constant
        if handler_level == 'error':
            self.handler_level = logging.ERROR
        elif handler_level == 'warning':
            self.handler_level = logging.WARNING
        elif handler_level == 'info':
            self.handler_level = logging.INFO
        elif handler_level == 'debug':
            self.handler_level = logging.DEBUG
        else:
            self.logger_bool = False
            self.log_namespace = namespace
            self.log_warning = 'log handler level not properly set'

        # logger level: overriden by calling module
        if logger_level == 'error':
            self.logger_level = logging.ERROR
            self.log_filename = logger_level + '.log'
        elif logger_level == 'warning':
            self.logger_level = logging.WARNING
            self.log_filename = logger_level + '.log'
        elif logger_level == 'info':
            self.logger_level = logging.INFO
            self.log_filename = logger_level + '.log'
        elif logger_level == 'debug':
            self.logger_level = logging.DEBUG
            self.log_filename = logger_level + '.log'
        else:
            self.logger_bool = False
            self.log_namespace = namespace
            self.log_warning = 'logger level not properly set'

        # override default filename (optional)
        if filename:
            self.log_filename = filename + '.log'

        # log namespace
        self.log_namespace = namespace

        # redefine if not properly set
        if not self.logger_bool:
            self.handler_level = logging.WARNING
            self.logger_level = logging.WARNING
            self.log_filename = 'warning.log'
            self.log_path = WARNING_LOG_PATH

        # log handler: requires the below logger
        formatter = logging.Formatter(
            "[%(asctime)s] {%(pathname)s:%(lineno)d} "
            "%(levelname)s - %(message)s"
        )
        fh = logging.FileHandler(self.log_path + '/' + self.log_filename)
        fh.setLevel(self.handler_level)
        fh.setFormatter(formatter)

        # logger: complements the log handler
        self.logger = logging.getLogger(self.log_namespace)
        self.logger.addHandler(fh)
        self.logger.setLevel(self.logger_level)
Deletes the 'Like' for the entry with the given ID (if any).
dataset/ETHPy150Open jeff1evesque/machine-learning/log/logger.py/Logger.__init__--crossover with--dataset/ETHPy150Open bgolub/fftogo/friendfeed.py/FriendFeed.delete_like