diff --git a/__init__.py b/__init__.py index b04966c..a3253fe 100644 --- a/__init__.py +++ b/__init__.py @@ -35,8 +35,11 @@ import sys import time -logger_name = 'FSTOOLS' -logger = logging.getLogger(logger_name) +try: + from config import APP_NAME as ROOT_LOGGER_NAME +except ImportError: + ROOT_LOGGER_NAME = 'root' +logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__) __DESCRIPTION__ = """The Module {\\tt %s} is designed to help on all issues with files and folders.