Using Log Files

GammaSpec automatically opens log files to log debug information, warnings and errors, and to track processing progress and save output for the user. There are two types of log files – System log files and User (or Application) log files:

    1. A new System log file is opened when GammaSpec is launched, and remains open until GammaSpec is terminated. The System log files have a date and time stamp embedded in their names, and can be found in the “logs” sub-directory of the Install directory. These can be deleted once no longer required. The System log files save debug information, warning and error messages.
    2. User log files save the output from executed processes and tools. 

There are two types of User log files:

    1. A user log file called UserLog_main.log is created in the working directory (alongside the database) each time the database is opened. Since the name is always the same, the new file will overwrite any existing UserLog_main.log file in the directory. So, if you want to save the existing file, you need to rename it before re-opening the database. This log file will save output from all the airborne processing steps (NASVD, Energy Calibration, Windowing and Corrections). It will also save all output from the Utilities tools.
    2. A user log file called UserLog_<toolName>.log, where <toolName> is a name identifying the tool that created the file, is created in the working directory when any of the tools in the Calibration, Enhancements, or Portable menus are executed. For example, running the Spectral-Ratio C1 tool will produce the user log file UserLog_ratioC1.log in the working directory. Again, each run of the tool will overwrite the existing log file unless it has been renamed.

The User log files should be checked at the end of every tool execution to ensure that the processing was successful.

The System log file only needs to be checked in the event that there were errors, or the program ended abnormally.