import os
import argparse
+from gkeys import log
+log.set_logger('gkeyldap')
from gkeys.log import logger
+
from gkeys.config import GKeysConfig, GKEY
from gkeys.seed import Seeds
from gkeyldap.search import (LdapSearch, UID, gkey2ldap_map, gkey2SEARCH)
import argparse
import sys
+from gkeys import log
+log.set_logger('gkeys')
from gkeys.log import logger
+
from gkeys.config import GKeysConfig, GKEY
from gkeys.seed import Seeds
logging.basicConfig()
-logger = logging.getLogger('gentoo-keys')
+NAMESPACE = 'gentoo-keys'
+logger = None
+
+def set_logger(namespace=None):
+ global logger, NAMESPACE
+ if not namespace:
+ namespace = Namespace
+ else:
+ NAMESPACE = namespace
+ logger = logging.getLogger(namespace)
+