Logging Requests and Responses

The HttpDispatcher can log requests and responses to a log file. You can indicate whether or not it should log, and what it should log, by adding a filters element to the element in which HttpDispatcher is defined.

<?xml version='1.0' encoding='windows-1250'?>
<server>
        <port>7777</port>
        <wsPort>8888</wsPort>
        ....
        <serverComponents>
                <component class="cz.adastra.cif.online.web.HttpDispatcher">
                        <protocol>http</protocol>
                        <filters>
                            <filter class="cz.adastra.cif.online.web.filters.
                                LoggingFilter" location="/" 
                                logFile="request.log" maxRequestLogSize=
                                   "-1"maxResponseLogSize="-1" appendLog ="false">
                            </filter>
                        </filters>
                </component>
                <component class="cz.adastra.cif.online.OnlineServicesComponent">
                        <configFolder>etc/online</configFolder>
                </component>
        </serverComponents>
        ....
</server>

There can be more filters. The filter in the example is the only one implemented. It has the following properties:


iWay Software