void Ns_ModLogRegister(
char *realm,
Ns_ModLogHandle *handle
);
The Ns_ModLogRegister function allocates a new handle. The new handle initialized with the realm, the default logging severity, and the default server log file. A realm is a character string. The default handle is returned if realm is null.
static Ns_ModLogHandle cgiModLogHandle; int Ns_ModuleInit(char *server, char *name) { Ns_ModLogRegister(name, &cgiModLogHandle); CgiInit(server); return NS_OK; }