code: protected void preNativeCall()
      {
          //get logger
          Logger logger=this.getLogger();
          
          //get log level
          LogLevel logLevel=logger.getLogLevel();
          
          boolean debugMode=false;
          if(logLevel.equals(LogLevel.DEBUG))
          {
              debugMode=true;
          }
          
          //set debug mode
          WindowsJNIFaxClientSpi.setDebugModeNative(debugMode);
      }
docs: This function is invoked before any native call to set the
  native layer debug mode.