"""
Appraise evaluation framework

See LICENSE for usage details
"""
import logging

from Appraise.settings import LOG_HANDLER, LOG_LEVEL

def _get_logger(name):
    """
    Initialises and returns named Django logger instance.
    """
    named_logger = logging.getLogger(name=name)
    named_logger.setLevel(LOG_LEVEL)
    named_logger.addHandler(LOG_HANDLER)
    return named_logger
