Browse Source

Socket logging with project specific adaptions

master
Dirk Alders 2 months ago
parent
commit
6b110b61b8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      piki/settings.py

+ 2
- 2
piki/settings.py View File

182
 
182
 
183
 # Logging Configuration
183
 # Logging Configuration
184
 #
184
 #
185
-ROOT_LOGGER_NAME = 'apps'
185
+ROOT_LOGGER_NAME = os.path.basename(os.path.dirname(__file__))
186
 default_handler = ['socket'] if DEBUG else ['console']
186
 default_handler = ['socket'] if DEBUG else ['console']
187
 
187
 
188
 
188
 
216
         },
216
         },
217
         'socket': {
217
         'socket': {
218
             'level': 'DEBUG',
218
             'level': 'DEBUG',
219
-            'class': 'piki.settings.DjangoSocketHandler',
219
+            'class': f'{ROOT_LOGGER_NAME}.settings.DjangoSocketHandler',
220
             'host': '127.0.0.1',
220
             'host': '127.0.0.1',
221
             'port': 19996,
221
             'port': 19996,
222
         },
222
         },

Loading…
Cancel
Save