Implementing Logging
The way that logging is implemented in the sample application is by having a single
routine that records logging events. This routine is called at various points in the exe-
cution of business process steps and the rules that are contained within them. The
function, LogExecution(), is shown in Listing 21.1.
436
CHAPTER TWENTY-ONE Debugging in Business Rules Engines
LISTING 21.1
Function to Update Business Rule Execution Log
Public Function LogExecution(strStep As String, strRule As String,
_
lngRecord As Long, strTab As String, strStatus As String)
As String
'*******************************************************************
' Records a log event. Called by the generated code. It updates
' the Business Rule Execution Log.
'
' Parameters: ...