|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    void Ns_ModLogSetThreshold(
    Ns_ModLogHandle handle,
    Ns_LogSeverity severity
    );
The Ns_ModLogSetThreshold function sets the logging threshold of a handle to a particular severity. Only those messages that have the same severity or higher as the handle will be logged with Ns_Modlog for that handle. The default handle is used instead for a null handle.
    Ns_ModLogHandle handle;
    Ns_ModLogRegister("testrealm", &handle);
    Ns_ModLogSetThreshold(handle, Debug);
    Ns_ModLog(Debug, handle, "This should appear");
    Ns_ModLogSetThreshold(handle, Notice);
    Ns_ModLog(Debug, handle, "This should not appear");
ns_modlogcontrol set_threshold