import logging
from .defaults import *  # noqa

try:
    from .local import *  # noqa
except ImportError as error:
    logging.warn('No local.py settings file found')

import logging
from .defaults import *  # noqa

logger = logging.getLogger(__name__)

try:
    from .local import *  # noqa
except ImportError as error:
    logger.warn('No local.py settings file found')

Use namespaces logger in mendeley settings