At 11:58 PM 9/2/01, you wrote:
>Does anybosy know a way to silence the logging of HTTP GETs and POSTs?  We
>can't find a place in the config file to turn them off... I thought it
>might be as simple as setting the verbose mode to off (using ns_server
>verbose off), but alas, that command no longer exists...
>
>Thanks for your help,
>-T

Todd,

Are you referring to the access log that logs almost every hit you get?  If you don't 
want to log GETs and POSTs in this file, I guess you can choose not to load the 
nslog.so module.

What is it that you do wish to log?

I have also added the following to the begining of aolserver/nslog/nslog.c/LogTrace:

    /*
     * Return immediately if anyone has set no log true
     */
    if ((p = Ns_SetIGet(conn->headers, "X-No-Log"))) {
        return;
    }

Then I can create filters that add "x-no-log" to the input headers of any request that 
I don't want logged:

Something like:

    ns_set put [ns_conn headers] X-No-Log true

Hope that helps,


Jerry





=====================================================
Jerry Asher                       [EMAIL PROTECTED]
1678 Shattuck Avenue Suite 161    Tel: (510) 549-2980
Berkeley, CA 94709                Fax: (877) 311-8688

Reply via email to