void Ns_ModLogRedirect( Ns_ModLogHandle handle, FILE *fp, char *description );
The Ns_ModLogRedirect function redirects logging of a realm to an open file. The default handle is used instead for a null handle. fp refers to an open file. A null pointer for fp redirects the output to the default server log file. The description string is printed in the original server log file for the handle.
FILE *fp; fp = fopen("cgirealm.log", "a"); Ns_ModLogRedirect(cgiModLogHandle, fp, "redirecting to a different file");