You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Neil Rudd <ne...@fenc.org.uk> on 2004/11/08 13:06:08 UTC

Recording different site logs to different files

Hello

I'm currently utilising Cocoon 2.1 with IIS 6 to serve multiple customer
sites from the one cocoon project using the Host Selector method (see
code snippet below). 

<map:selector name="Host" src="org.apache.cocoon.selection.HostSelector"
logger="sitemap.selector.host">
    <host name="sitea-co-uk" value="sitea.co.uk" />
    <host name="siteb-co-uk" value="siteb.co.uk" />
    <host name="sitec-co-uk" value="sitec.co.uk" />
</map:selector>
..
..
..
<map:match pattern="*/**">
    <map:select type="Host">
        <map:when test="sitea-co-uk">
            <map:mount check-reload="yes" uri-prefix="{1}"
src="file:///D:/Domains/sitea.co.uk/cocoon/{1}/" />
        </map:when>
        <map:when test="siteb-co-uk">
            <map:mount check-reload="yes" uri-prefix="{1}"
src="file:///D:/Domains/siteb.co.uk/cocoon/{1}/" />
        </map:when>
        <map:when test="sitec-co-uk">
            <map:mount check-reload="yes" uri-prefix="{1}"
src="file:///D:/Domains/sitec.co.uk/cocoon/{1}/" />
        </map:when>
        <map:otherwise>
            <map:mount check-reload="yes" src="{1}/" uri-prefix="{1}" />
        </map:otherwise>
    </map:select>
</map:match>


My question is, is there anyway I can separate and record the logs to
their respective folder. For example, all logs for SiteA would be
recorded in D:\Domain\sitea.co.uk\logs, all logs for SiteB would be
recorded in D:\Domains\siteb.co.uk\logs and all logs for SiteC would be
recorded in D:\Domains\sitec.co.uk\logs. Also, if this is possible, is
there anyway to have the logs recorded so the SmarterStats software can
utilise them?

Thanks
Neil