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

anarcat’s picture

This 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.

iler’s picture

Yes this should of course be optional but this option is really needed imo.

steven jones’s picture

Status: Active » Closed (won't fix)

I 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.