Closed (won't fix)
Project:
Provision
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2012 at 19:10 UTC
Updated:
19 Aug 2012 at 20:11 UTC
In the current implementation all the access and error logs are logged in to the same web server log file. It would be nice to have possibility to define individual access & error logs and logformat for every virtualhost. This would make it easier to trace possible problems. Now I have to do these log settings manually for every sites vhost config. The form could be something like this:
ErrorLog /var/log/aegir/sitename-error.log
LogLevel warn
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %V %D %k %P" custom
CustomLog /var/log/aegir/sitename-access.log custom
Comments
Comment #1
anarcat commentedThis is a massive performance overhead for servers with hundreds of sites, as each site will have a file descriptor opened and closed all the time for the logs.
If this is implemented, it should be made optional.
Comment #2
iler commentedYes this should of course be optional but this option is really needed imo.
Comment #3
steven jones commentedI don't think that we change the default logging in place by apache when we get there do we?
This would probably be a good case for an addon module, there should be enough extension points to allow you to specific log levels per-site.