[][src]Function qpid_proton_sys::pn_logger_set_mask

pub unsafe extern "C" fn pn_logger_set_mask(
    logger: *mut pn_logger_t,
    subsystem: pn_log_subsystem_t,
    level: pn_log_level_t
)

Set a logger's tracing flags. Set individual trace flags to control what a logger logs. The trace flags for a logger control what sort of information is logged. See pn_log_level_t and pn_log_subsystem_t for more details. Note that log messages with a level of PN_LEVEL_CRITICAL will always be logged. Otherwise log message are only logged if the subsystem and level flags both match a flag in the masks held by the logger. If you don't want to affect the subsystem flags then you can set subsystem to PN_SUBSYSTEM_NONE. likewise level to PN_LEVEL_NONE if you don't want to affect the level flags.