tfLogSetLevel

Jump to: navigation, search

Table of Contents >> IPsec/IKE Programmer's Reference >> Enhanced Logging for IPsec/IKE


#include <trsocket.h>


int tfLogSetLevel (
tt32Bit module,
tt8Bit level
);


Function Description

This function sets the active Logging Level for the given Module.


Usage

This function is called from the Application to change the active Logging Level for the given Module on the fly. This result is an immediate change in the information that is delivered to the logging mechanism. Note that TM_LOG_ENB_ALL_MODULES is a valid argument for module, and TM_LOG_ENB_ALL_LEVELS is a valid argument for level.


Parameters

  • module
    This is set to one of the Modules.
  • level
    This is set to one of the Levels



Returns

  • TM_ENOERROR
    This indicates success.
  • TM_EINVAL
    This indicates failure. The kernel found invalid arguments in the call.



Table of Contents >> IPsec/IKE Programmer's Reference >> Enhanced Logging for IPsec/IKE