Customize the format of zun logs in apache2

Change-Id: Ib18f7187089822edaefcde1d0e56f5251c6586f2
This commit is contained in:
Hongbin Lu 2017-03-18 12:03:29 -05:00
parent 62f39a919d
commit 71545ee7b8

View File

@ -21,15 +21,16 @@
# be adjusted according to local requirements.
Listen %PUBLICPORT%
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)" zun_combined
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess zun-api user=%USER% processes=5 threads=1 display-name=%{GROUP}
WSGIScriptAlias / %PUBLICWSGI%
WSGIProcessGroup zun-api
ErrorLogFormat "%M"
ErrorLog /var/log/%APACHE_NAME%/zun_api.log
LogLevel info
CustomLog /var/log/%APACHE_NAME%/zun_access.log combined
CustomLog /var/log/%APACHE_NAME%/zun_access.log zun_combined
<Directory /opt/stack/zun/zun/api>
WSGIProcessGroup zun-api