Skip to main content
Kofax

How to enable Core Worker Unity logging

Question / Problem: 

What are the steps for enabling additional logging for the Core Worker service?

Answer / Solution: 

The following steps explain how to enable/disable additional logging for the Core Worker service.

 

1. Stop the Core Worker service 

2. Navigate to C:\Program Files\Kofax\TotalAgility\CoreWorkerService. Substitute the drive letter used for the KTA installation if different from the C: drive.

3. Open the Agility.Server.Core.WorkerService.exe file in a text editor such as Notepad.

4. Uncomment the highlighted lines below:

<system.diagnostics>
<!--to enable TA Logging specify a trace listener with KTALog as name-->
<!--<add name="KTALog" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\temp\KTALog.txt">
</add>-->
</system.diagnostics>

and

<container>
<!--KTA Logging - uncomment the below tag to enable logging of method calls-->
<!--<extension type="Agility.Server.Common.Logging.LogMethodRegistration, Agility.Server.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d86c87abe4a71948" />-->
<!--Start of Repositories-->

5. Verify that the folder path for the log location exists. (c:\temp in this example)

6. Save the changes to the Agility.Server.Core.WorkerService.exe file.

7. Restart the Core Worker service

8. Replicate the behavior that is to be captured in the logging. The results will be in the log file specified in the path.

9. Reverse the steps above to disable the logging once the necessary logs have been created.

  • Was this article helpful?