Enabling the Trace Writer File

Declare Variables/Constants

String FILE_NAME_AND_OR_PATH = "myTraceWriterFile";
Attribute attrConfig = null;

API Calls

To enable the trace writer file in your application, execute the APIs in the specified sequential order only:

>attrConfig = new Attribute();

>attrConfig.set(LicensingConstants. SNTL_ATTR_CONFIG_TRACE_WRITER_FILE, FILE_NAME_AND_OR_PATH);

>attrConfig.set(LicensingConstants.SNTL_ATTR_CONFIG_TRACE_LEVEL, LicensingConstants.SNTL_ATTR_CONFIG_TRACE_ERROR);

>LicensingAPI.configure(attrConfig);

NOTE   The ApplicationContext creation and other licensing API should be implemented after the configure API.