Configured logger.

def configured_logger(self, name=None):
        """Configured logger.
        """
        log_handlers = self.log_handlers
        # logname
        if not name:
            # base name is always pulsar
            basename = 'pulsar'
            # the namespace name for this config
            name = self.name
            if name and name != basename:
                name = '%s.%s' % (basename, name)
            else:
                name = basename
        #
        namespaces = {}

        for log_level in self.log_level or ():
            bits = log_level.split('.')
            namespaces['.'.join(bits[:-1]) or ''] = bits[-1]

        for namespace in sorted(namespaces):
            if self.daemon:     # pragma    nocover
                handlers = []
                for hnd in log_handlers:
                    if hnd != 'console':
                        handlers.append(hnd)
                if not handlers:
                    handlers.append('file')
                log_handlers = handlers
            configured_logger(namespace,
                              config=self.log_config,
                              level=namespaces[namespace],
                              handlers=log_handlers)
        return logging.getLogger(name)