File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 239239 "class" : "logging.StreamHandler" ,
240240 "formatter" : "db" ,
241241 },
242- "celery_console" : {
243- "level" : CELERY_LOGLEVEL ,
244- "class" : "logging.StreamHandler" ,
245- "formatter" : "timestamped" ,
246- },
247- "celery_file" : {
248- "level" : CELERY_LOGLEVEL ,
249- "class" : "logging.handlers.RotatingFileHandler" ,
250- "filename" : Path (LOGGING_DIR ) / "celery.log" ,
251- "formatter" : "verbose" ,
252- "maxBytes" : 1024 * 1024 * 10 , # 10 MB
253- "backupCount" : 10 ,
254- },
255242 # replaces the "django" and "project" handlers - in containerized applications
256243 # the best practices is to log to stdout (use the console handler).
257244 "json_file" : {
350337 "level" : "INFO" ,
351338 "propagate" : False ,
352339 },
353- "celery" : {
354- "handlers" : ["celery_console" ] if LOG_STDOUT else ["celery_file" ],
355- "level" : CELERY_LOGLEVEL ,
356- "propagate" : True ,
357- },
358340 },
359341}
360342
You can’t perform that action at this time.
0 commit comments