Customize Transaction Log Fields

Change the values for the fields defined in the ITransactionLogFields that gets logged in the log file of the client tools.

Default implementation of transaction log fields is provided with ‘CO_MODULE’, ‘CUST_ID’, ‘CROSSREF_ID’ fields fetched from the

.config file. All other fields have default values.

 

To custom implementation of transaction log fields:

  1. Create a class library project in Visual Studio.
  2. Add a reference of DLL ‘System.ComponentModel.Composition.dll’ available with .net framework 4.8. Add reference of DLL ‘Utilities.ITransactionLogFields.dll’ into that project. This DLL is present in SE folder in the build.
  3. Create a new class and implement the interface ITransactionLogFields.
  4. To create multiple instances, create a new class with interface Utilities. ITransactionLogFieldsFactory
  5. Provide ‘[Export (typeof (ITransactionLogFieldsFactory))]’ attribute on that class, implement that interface. Provide imple- mentation for below method in that class.

    public ITransactionLogFields CreateTransactionLogFields()

    {

    //Returns new instance of class created in step c

    }


  6. Build the project solution in “x86” Mode.
  7. Copy the custom-built DLL in MEFDLLS folder in EPA installation directory. And remove the Utilities.DefaultTransactionLog- Fields.dll from that location.