File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1
- media /
1
+ media /
2
+ * .log
Original file line number Diff line number Diff line change 94
94
}
95
95
}
96
96
97
+ LOGGING = {
98
+ 'version' : 1 ,
99
+ 'disable_existing_loggers' : False ,
100
+ 'formatters' : {
101
+ 'standard' : {
102
+ 'format' : '%(asctime)s %(filename)s:%(lineno)d %(levelname)s - %(message)s'
103
+ },
104
+ },
105
+ 'handlers' : {
106
+ 'console' : {
107
+ 'class' : 'logging.StreamHandler' ,
108
+ },
109
+ 'django_editorjs_fields' : {
110
+ 'level' : 'DEBUG' ,
111
+ 'class' : 'logging.handlers.RotatingFileHandler' ,
112
+ 'filename' : 'django_editorjs_fields.log' ,
113
+ 'maxBytes' : 1024 * 1024 * 5 , # 5 MB
114
+ 'backupCount' : 5 ,
115
+ 'formatter' : 'standard' ,
116
+ },
117
+ },
118
+ 'loggers' : {
119
+ 'django_editorjs_fields' : {
120
+ 'handlers' : ['django_editorjs_fields' , 'console' ],
121
+ 'level' : 'DEBUG' ,
122
+ },
123
+ },
124
+ }
125
+
97
126
98
127
# Password validation
99
128
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
You can’t perform that action at this time.
0 commit comments