Session Data Logging

Use the Session Data Logging option to write programming session-data or testing data (date, time, yield) to a log file.

 

Session Data dialog

¤ The Session Data Logging dialog with inset of drop-down expanded.

LoggingMode – select to append to, or overwrite, the existing log file.

Log Filename – Select Fixed filename to type in your own file name, or

Select Automatically Generated filename, select a format from the drop-down, and then select a location for the log file.

Note: Taskname is the name you gave this Task when you created or edited it.
Description is the optional description that you gave this Task. Both the name and description are shown in the Task Manager.

Automatic log to printer at session end – enables printing of log file at the end of the programming session

Advanced – opens the Advanced Logging Preferences dialog used to include custom information in the Session Log. NOTE that the user must have Administrator Authorization.

About Advanced Logging Preferences

Advanced Session Logging allows including information in the Session Log that is specific to your programming process (beyond what TaskLink normally includes).

This custom feature provides "hooks" to invoke a separate Windows® executable file (developed by your organization) that gathers the custom information from the Operator when a Task is run. The custom application stores the information in a file. TaskLink reads this file when the Session Log is written and includes the custom information in the Session Log.

Using Advanced Logging Preferences

  1. Develop a Windows executable file to query the operator for the desired custom logging information. This custom application must create an output file that:
    1. stores custom information as key/value pairs in a section named "[Custom Fields]"
    2. stores its exit status as a key/value pair in a section named "[Program Information]". The key name must be "Exit Status" and the value field must be set to either "OK" or "Canceled" by the application program. If the status returned by the application program is "Canceled" then TaskLink terminates the running of the Task.

 Note: TaskLink clears the exit status value after it reads the output file.

Here is an example output file named CustomLogFlds.txt:

--------------------------------------------------------------------------------

[Custom Fields]

Run Code=1234

Operator ID=5678

Handler ID=PS-05

 

[Program Information]

Exit Status=OK

--------------------------------------------------------------------------------

  1. Edit the session logging configuration file (a sample is in the TaskLink directory, named Sample_SessionLogCfg.ini). The session logging configuration file contains a parameter used by TaskLink for the custom session logging.

    To edit this file, set CustomLogFldsFile to the name and path where the output file is placed by the custom session logging application.

Here is an example of the contents of the session logging configuration file:

--------------------------------------------------------------------------------------------------------------

[Custom_Session_Log]

;Set this parameter to the path and file name for the

;file containing the custom data from the custom app

CustomLogFldsFile=C:\SessionLogging\Exe\CustomLogFlds.txt

--------------------------------------------------------------------------------------------------------------

  1. Check Enable Data Logging and set the preferences as desired.
  2. Click Advanced (lower right of dialog).
  3. In the Custom Logging Program field, enter the path and name of the custom logging executable application you developed.
Advanced Logging Preferences

¤ Both fields in the Advanced Logging Preferences dialog require input for custom session log files.

  1. In the Session Logging Config File field, enter the path and name of the session logging configuration file that you edited in step 2  above.
  2. Press OK twice to exit the session logging preferences dialogs.

Run a Task. Your executable is invoked at the beginning of the process requesting information as shown below.

PSFC_Images\customapp_85.gif

Enter the data into your application’s dialog, and then exit your application. TaskLink continues the normal steps for running the Task. When the Task is completed, the custom session logging information appears in the Session Log file (as shown in the example TLWin Session Data Log shown above).

 

See Also:

Log File Format

• • •