C API Reference -- Ns_RegisterServerTrace

### Ns_RegisterServerTrace

#### Overview

Register a trace procedure for a server.

#### Syntax

        typedef void (Ns_TraceProc) (void *context, Ns_Conn *conn);

        Ns_ProcHandle Ns_RegisterServerTrace(
        char *hServer,
        Ns_TraceProc *proc,
        void *context
        );

#### Description

The Ns_RegisterServerTrace function registers `proc` as a trace for the specified server. The server calls all trace procedures after every HTTP connection with the context and the Ns_Conn for that connection. The procedures are run in last-registered first-run order. A trace procedure is often used for logging.

Top of Page
Copyright © 1998-99 America Online, Inc.