Enabling Tracing Using Unified API
Declare Variables/Constants
#define FILE_NAME_AND_OR_PATH "myTraceWriterFile"
sntl_licensing_attr_t *pAttrConfig = NULL
;
API Calls
To enable the trace writer file in your application, execute the APIs in the specified sequential order only:
sntl_licensing_attr_new(&pAttrConfig);
sntl_licensing_attr_set_config_trace_writer_file(pAttrConfig, FILE_NAME_AND_OR_PATH);
sntl_licensing_attr_set_config_trace_level(pAttrConfig, SNTL_ATTR_CONFIG_TRACE_ERROR);
sntl_licensing_configure (pAttrConfig);
By default, the tracing operation is disabled for the licensing library.
NOTE The ApplicationContext creation and other licensing API should be implemented after the configure API.