File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 10
10
https://docs.djangoproject.com/en/4.2/ref/settings/
11
11
"""
12
12
import os
13
+ import sys
13
14
from distutils .util import strtobool
14
15
from pathlib import Path
15
16
from typing import Any
206
207
'console' : {
207
208
'class' : 'logging.StreamHandler' ,
208
209
'formatter' : 'simple' ,
210
+ 'stream' : sys .stdout ,
209
211
},
210
- 'file' : {
211
- 'class' : 'logging.handlers.RotatingFileHandler' ,
212
- 'filename' : os .path .join (BASE_DIR , 'logs' , 'signal_documentation.log' ),
213
- 'formatter' : 'simple' ,
214
- 'maxBytes' : 1024 * 1024 * 15 , # 15MB
215
- 'backupCount' : 10 ,
216
- }
217
212
},
218
213
'loggers' : {
219
214
'django' : {
220
- 'handlers' : ['file' , ' console' ],
215
+ 'handlers' : ['console' ],
221
216
'level' : 'INFO' ,
217
+ 'propagate' : True ,
222
218
},
223
219
},
224
220
}
You can’t perform that action at this time.
0 commit comments