Permalink
Browse files

Added note about using Gunicorn with logrotate.

  • Loading branch information...
1 parent 8df917d commit 0d580561327e0ae379801d3cc10444b504922608 @shouse-cars shouse-cars committed with benoitc May 8, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 doc/site/deploy.rst
View
@@ -184,6 +184,15 @@ Another useful tool to monitor and control Gunicorn is Supervisor_. A
autorestart=true
redirect_stderr=True
+Logging
+-------
+
+Logging can be configured by using various flags detailed in the
+`configuration documentation`_ or by creating a `logging configuration file`_.
+Send the ``USR1`` signal to rotate logs if you are using the logrotate
+utility::
+
+ kill -USR1 $(cat /var/run/gunicorn.pid)
.. _Nginx: http://www.nginx.org
.. _slowloris: http://ha.ckers.org/slowloris/
@@ -192,4 +201,6 @@ Another useful tool to monitor and control Gunicorn is Supervisor_. A
.. _`example service`: http://github.com/benoitc/gunicorn/blob/master/examples/gunicorn_rc
.. _Supervisor: http://supervisord.org
.. _`simple configuration`: http://github.com/benoitc/gunicorn/blob/master/examples/supervisor.conf
+.. _`configuration documentation`: http://gunicorn.org/configure.html#logging
+.. _`logging configuration file`: https://github.com/benoitc/gunicorn/blob/master/examples/logging.conf
.. _Virtualenv: http://pypi.python.org/pypi/virtualenv

0 comments on commit 0d58056

Please sign in to comment.