Django with Apache and mod_wsgi: no system log unless setting Debug = True

Solution 1:

In your settings.py file, you will need to add the following to the LOGGING configuration:

LOGGING = {
    #  ... omitting the formatters and handlers for brevity ...
    'loggers': {
        # ...  you may have other loggers here as well ...
        'django': {
            'handlers': ['name_of_your_file_handler_goes_here'],
            'level': 'DEBUG',
            'propagate': True,
        }
    }

You probably should set the level to ERROR or WARN in production.