Requirement: in a Production environment, you want to reduce the amount of information displayed in the Activity Log tab when a User views a particular Activity's Properties.
By default (after any installation, either new or upgrade), the Activity Log displays all messages: Verbose messages, which include information regarding how long various operations ran while executing the Activity; Information messages, which include descriptions of the actions being taken within an Activity; Warning messages, which include validation problems encountered during the actions of a particular Activity or indicate the action taken after encountering an error; and Error messages, which indicate any errors encountered within an Activity.
In your Production environment, you don't need to see the performance statistics for every Activity nor do you need to display each action within an Activity, so you only want to view Warning and Error messages within the Activity Log.
How To Update the Configuration File:
The output to the Activity Log is controlled within the Process Engine Service's configuration file. In a default installation, this file is located at: C:\Program Files\Bluespring BPM 5\ProcessEngine\Bluespring.ProcessEngine.exe.config. Before making changes to this file, create a copy of the file and store it in the same location. You should also create a document or spreadsheet which will allow you to track the changes made to the configuration file, so you can duplicate these changes after upgrading to a new Service Pack for BPM5. Once you have created a backup, use the Services dialog to stop the Service: Bluespring Process Engine. Note that, while you update the configuration file, Processes will not be executing because the Process Engine is not running.
The requirement is to change the
type of information logged, i.e.
what information is logged. So, you will change at least one of the Listeners in the configuration file. Specifically, you will need to change the
filter attribute. The Activity Log is associated with the Listener named Bluespring.ProcessEngine.MsmqLog, i.e.
<
add Queue="net.msmq://./private/Logger" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.CustomTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="None" filter="All" type="Bluespring.Logging.MsmqTraceListener, Bluespring.Shared" name="Bluespring.ProcessEngine.MsmqLog" initializeData=""/>
Notice that the filter is set to "All" which corresponds to the default behavior to write Verbose, Information, Warning and Error messages to the Activity Log. We only want to display Warning and Error messages. Keeping in mind that specifying a particular output includes all subsequently more urgent outputs, i.e. specifying Information will exclude Verbose messages, but include Warning and Error messages, we note that setting the filter to display Warning messages will include Error messages. So, we udpate the Listener configuration to:
<
add Queue="net.msmq://./private/Logger" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.CustomTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="None" filter="Warning" type="Bluespring.Logging.MsmqTraceListener, Bluespring.Shared" name="Bluespring.ProcessEngine.MsmqLog" initializeData=""/>
Once we have completed making the change to the configuration file, use the Service dialog to Start the Service: Bluespring Process Engine. For future Processes, the Activity Log in BPM Admin will only display Warning and Error messages