Hi Craig, - Enable SysLog handler in Django logging config: http://stackoverflow.com/questions/3968669/how-to-configure-logging-to-syslog-in-python - https://docs.djangoproject.com/en/1.9/topics/logging/
- Make sure Syslog handler logging level is DEBUG (if I recall correctly his was the required level to catch SQL statements) - Make sure the logger Django is using for SQL logs (don't remember name out from my head) has SysLog as a handler Cheers, Mikko On 31 March 2016 at 19:09, Craig Bruce <[email protected]> wrote: > Hi, > > > > I run my Django server with uWSGI. In my logging configuration I write to > syslog. In the uWSGI config I also send my logs to syslog. When Django > DEBUG=True I would expect to see the SQL logs in syslog as well, like I do > when I run manage.py runserver using the same Django settings. However, my > syslog never has any SQL logs. I altered my configuration to write the > console, a file or syslog, but I can never get the SQL logs appears. I’ve > searched extensively and can’t find anything specific about missing SQL > logs when running via uWSGI. Is this a known issue or am I missing some > configuration value? > > > > Any advice would be greatly appreciated. > > > > Cheers > > Craig > > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > -- Mikko Ohtamaa http://opensourcehacker.com http://twitter.com/moo9000
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
