[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_ModLogSetThreshold

Overview

Set the logging severity of a handle

Syntax

    void Ns_ModLogSetThreshold(
    Ns_ModLogHandle handle,
    Ns_LogSeverity severity
    );

Description

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.

Examples

    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");

See also

ns_modlogcontrol set_threshold

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.