WinAutomation - windows automation software with macro recorder
      1 reply [Last post]
      jems
      User offline. Last seen 20 weeks 5 days ago. Offline
      Joined: 03/06/2010
      Posts: 3

      Hi

      I would like to konw if there is a way to have a job write an entry into the log file, without out it being due to a step failure.

       

      I am evaluating the product for a set of end of month processes, that currently take a person around 10 days to do manually. We have around 6 people running these reports across all our branches, so it is a lot of "wasted" time. They spend a lot of time waiting for web pages to generate with lost of graphs, then save each graph to a folder, then format them all into a Word doc to send to our customers.

       

      By using an automation tool that runs overnight etc I believe we can get the job done in 3 days elapsed time and only about 1 days effor for the user to tidy up some graphics, anayse some summary data and write an "Executive Summary".

       

      Now, because this will be running unattended, if it does encounter any non-fatal errors in the input data, it would be great if I could force the job to write a message to the log file.

       

      Also, I would like to be able to write timestamp entires at key points in the processing (so we can analyse ho long each phase takes etc).

       

      I know I could create my own job log and paste the information into that (such as an excel/word/notepad file etx), or I could get it to send an email (which would be a bit harder). However, if there is a way to issue a "Write to Log" type command, and provide some text, that would be excellent.

       

      Regards

      Jems

       

       

       

      codex
      codex's picture
      User offline. Last seen 6 weeks 18 hours ago. Offline
      Joined: 11/12/2009
      Posts: 107
      Re: Writing to log file from Job

      Hello Jems and welcome to the forum! Did you try using the "Write Text to File" action? This action allows you to append data to a txt/log file thus enabling you to create detailed logs. 

      You can also use the "Get Current Date and Time" action to retrieve the current Date and Time and write it directly to the log file or you can even convert the date/time value that you retrieved to text in order to wite it with a specific format.

      In general, even though you do not provide specific details about your project, you should keep in mind that WinAutomation includes one of the most sophisticated Exception Handling systems. Each action that can throw an exception includes an "Exception Handling" tab where you can specify how the job will react in case that the specific error is occurs.

      In addition to that, you can use the wide range of conditionals to make sure that the inputs that are retrieved or sent by WinAutomation have the format that you want them to have. If you can provide us with a more specific example, we will probably be able to create a sample job that will demonstrate how exception handling and data validation in WinAutomation works

      __________________

      Error is not blindness, error is cowardice

      __________________

      Error is not blindness, error is cowardice