[Fixed]-Django – outputting console to log file

1πŸ‘

βœ…

I think you’ve miss understand the use of django.request. Based on the doc

Log messages related to the handling of requests. 5XX responses are raised as ERROR messages; 4XX responses are raised as WARNING messages.

I think the django.request only log info when 5XX or 4XX happened.

You can try http://127.0.0.1:8000/no/where/ to see if the logger worked.

πŸ‘€shellbye

0πŸ‘

Check your DEBUG=True in settings.py

require_debug_true filter will only pass on records when settings.DEBUG is True.

See Django Logging

πŸ‘€Corikachu

Leave a comment