Error Log Catching

On Sales Order line > Product and Supply > Configure Line 

We are doing same process code in our customized code

this.configurelineprocess(xxx) ;  // This is just to show we are using configuring process

How can i capture the error logs that occur during this process and save it in a table Error Log Table? 

we are running this process in batch so in case if we had any errors during process we need to see those errors somewhere. So we need to capture the errors . 

Parents Reply Children