Logging
Technical Document







Each operation executed by IntraLaunch can be tracked and appended to a local specified log file of your choice. The log file path must be escaped. (eg. log: '%TEMP_FOLDER%\\log.txt'). If the file does not exist it will automatically be created. If it does exist it will be appended too. In this case we will store the log file in the current user's temp folder. If the log file cannot be opened (eg. because of a permission problem or path not found) no error will be raised and no log created. If your organization must meet some sort of security/compliance regulation this is great. Many IntraLaunch objects can log to the same log file if required.


Logging Example

<html>
   <script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
   <script language="JavaScript" type="text/javascript"> var $jQuery = jQuery.noConflict(); </script>

   <script type="text/javascript">
   jQuery(document).ready(function()
     {
         jQuery("#write_link").on("click", function (event) 
         {      
           event.preventDefault(); // Recommended to stop the link from doing anything else
           document.dispatchEvent(new CustomEvent('funcIntraLaunch',
           {
              'detail': { task: 'run',
                          program: 'write.exe',
                          workingfolder: '%MY_DOCUMENTS%',
                          switches: '',
                          log: '%TEMP_FOLDER%\\log.txt',
                          windowstate: 'max',
                          showerrors: 'true'
                        } })); 
         });
     });
   </script>

   <body>
      <a href="#" id="write_link">Open write</a>
   </body>
</html>