Browse Source

Adaptions for new logging

master
Dirk Alders 4 years ago
parent
commit
b95bc3350d
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      __init__.py

+ 5
- 2
__init__.py View File

35
 import time
35
 import time
36
 
36
 
37
 
37
 
38
-logger_name = 'FSTOOLS'
39
-logger = logging.getLogger(logger_name)
38
+try:
39
+    from config import APP_NAME as ROOT_LOGGER_NAME
40
+except ImportError:
41
+    ROOT_LOGGER_NAME = 'root'
42
+logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
40
 
43
 
41
 
44
 
42
 __DESCRIPTION__ = """The Module {\\tt %s} is designed to help on all issues with files and folders.
45
 __DESCRIPTION__ = """The Module {\\tt %s} is designed to help on all issues with files and folders.

Loading…
Cancel
Save