| 1 | Improve default logging format |
| 2 | Currently it is: |
| 3 | |
| 4 | > DEFAULT_LOG_FORMAT = "%(filename)-25s %(lineno)4d %(levelname)-8s %(message)s" |
| 5 | |
| 6 | I think `name` (module name) would be very useful here, instead of just the base filename. |
| 7 | |
| 8 | (It might also be good to have the relative path there (maybe at the end), but it is usually still very long (but e.g. `$VIRTUAL_ENV` could be substituted therein)) |
| 9 | |
| 10 | Currently it would look like this: |
| 11 | ``` |
| 12 | utils.py 114 DEBUG (0.000) SELECT "app_url"."id", "app_url"."created", "app_url"."url" FROM "app_url" WHERE "app_url"."id" = 2; args=(2,) |
| 13 | multipart.py 604 DEBUG Calling on_field_start with no data |
| 14 | ``` |
| 15 | |
| 16 | |
| 17 | Using `DEFAULT_LOG_FORMAT = "%(levelname)-8s %(name)s:%(filename)s:%(lineno)d %(message)s"` instead: |
| 18 | |
| 19 | ``` |
| 20 | DEBUG django.db.backends:utils.py:114 (0.000) SELECT "app_url"."id", "app_url"."created", "app_url"."url" FROM "app_url" WHERE "app_url"."id" = 2; args=(2,) |
| 21 | DEBUG multipart.multipart:multipart.py:604 Calling on_field_start with no data |
| 22 | ``` |