Best Practices for log fields and messages

Hi Community,

I wanted to share best practices on logging which can be useful for auditing and troubleshooting.

Please refer to the example shown below

  • Log Message – Description of the activity performed
  • Log Level – Trace / Info / Warn / Error
  • File Received Date – Input file date or processing date
  • Supplier Name – Business entity being processed
  • Item Number – Unique identifier for the transaction
  • Item Name – Item or material description
  • Transaction Number – Sequential transaction ID
  • Transaction Execution Time (Seconds) – Total processing duration

Use the following expression to evaluate Transaction time: Cdbl((Now-Transactionstartdatetime).Totalseconds.tostring(“##.###”))

Thanks,
Kunal

1 Like