Apache not logging virtual domain

A client has asked us to set up a different domain (as an alias for their site) which they could use on certain marketing material and hence measure the campaign's effectiveness. We've set it up and it all seems to be working fine except that the access log file for the new domain is stuck at zero bytes.

It doesn't appear to be a permissions problem as I've set the permissions of the new log file to those of the existing log file which seems to be logging fine.

Here's the <VirtualHost> container, I can't see anything obviously wrong with it, anyone got any ideas?

<VirtualHost xxx.xxx.xxx.xxx>
        ServerAdmin webmaster@domain.com
        DocumentRoot /var/www/www.domain.com/htdocs
        ServerName www.newdomain.ie
        ServerAlias newdomain.ie *.newdomain.ie

        LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
        TransferLog /var/log/httpd/newdomain.ie-access.log
        ErrorLog /var/log/httpd/newdomain.ie-error.log
        CustomLog /var/log/httpd/pid_log processid

        <Directory /var/www/www.domain.com/htdocs>
                AllowOverride All
        </Directory>

        Alias /shared /var/www/www.domain.com/htdocs_shared
</VirtualHost>

I never define the LogFormat inside the VirtualHost directive.

In other words, our VirtualHost directives are more simple. Then again, I am a "keep it simple" kinda guy :wink:

Yeah having read up on apache logging directives I see that there are much better ways of doing this but I wasn't the one who set the server up. Maybe one day I'll sort it all out...

Anyway, I've managed to fix the problem now and it was nothing to do with the logging settings; the external/internal IP mappings where just a bit fubar-ed.

Thanks for the reply tho Neo.