Lesson 13 – Logging the Results

Objectives

Lesson 13 briefly explains how to store the results received from a caller request into a log file in order to be able to evaluate them later on. This is done by a Log object.

After completing this lesson you will know

·          how to create a Log object to store results,

·          how to access the log file from within the Control Center.

Logging

Within VoiceObjects application-level logging information may be written to a log file, to the media platform, to a custom database, or to the system database. This is done by using the Log object.

The default channel for logging is writing to a service-specific file that can be accessed via the Control Center (see Accessing the Log File).

Logging information may contain arbitrary dynamic content such as caller input, data retrieved from back-ends, etc. It may be written out at any point during a call, or after the call has ended.

In the case of the Life Insurance application you will log the gender and age of the caller for further dialog analysis purposes.

Creating a Log Object

To create the Log object for the Life Insurance application, do the following:

1.     From the New menu, select Log. An empty Log editor will open up.



2.     In the Log editor, enter Log caller data for dialog analysis as the name for the new Log object.

3.     In the Destination field, select Log File from the drop-down list, indicating that the Log item writes to a log file. A separate log file is created for each service.

4.     Enter Gender: into the text field and browse for the Caller gender Variable object to add it behind it. This will return the gender of the caller.

5.     Next, enter Age: and add the Caller age Variable object by browsing. This will return the age of the caller.

The Log caller data for dialog analysis Log object will look like this now:



Click Save and Close on the toolbar of the Log editor.

For further information on the Log object refer to Log in the Object Reference.

In the Object Browser you will now find a Log folder in the Resources folder, which contains your Log caller data for dialog analysis object.

Adding the Log Object to the Application

To add the Log caller data for dialog analysis Log object to the Life Insurance application, do the following:

1.     Open the Dialog Designer for the Life insurance Module object (if not already open) and right-click the Compute life insurance fee Script object.

2.     From the context menu, select Insert and browse for the Log caller data for dialog analysis Log object. It will be inserted behind the Confirmation object which is the point in the dialog flow at which all information required for this Log object (i.e. gender and age) will be available.

The dialog flow for the Life Insurance Module object looks like this now:


The actual behavior of the Life Insurance application has not changed but results are stored into a log file now.

After redeploying your service in the Control Center, call it several times to store some results.

Accessing the Log File

To access your log file, open the Control Center by right-clicking the Server object VOServer in the Object Browser.

The Control Center provides access to detailed log information both on the level of the server as well as on the level of each individual service.

Switch to the Service Logging tab to bring it to the front. The Service Logging tab provides access to the log files for all services.



Each service has two associated log files named VSN_Service.log and VSN_Error.log (where VSN stands for the VoiceObjects Service Name of the respective service). The VSN_Service.log file contains messages written by the Log object with destination Log File. The VSN_Error.log file contains all error messages related to this service.

Log files can be viewed (up to a maximum size of 1 MB), and downloaded. Both viewing and downloading are only possible if the log file is not empty.

To view a log file in a new window, click on the name of the log file. To download it, click the Download button to the right of the log file name.

For further information on the logging functionality in VoiceObjects refer to Chapter 5 – Logging and Tracing in the Deployment Guide.

To view the log file for the Tutorial service, click Tutorial_Service.log. The log file will be displayed in a separate window (for better readability the layout of the example log file below has been slightly modified):

[Category: INFO]

[Log Name: Log caller data for dialog analysis]

[Label: ]

[Ref ID: 0.135.149:OVAPac1617bc0000000000003a03000001114bbf400d_BVO_Log]

[VSN: Tutorial]

[Dialog ID: OVAPac1617bc000000000000258d000001114bbb7c64]

[TS: 2007-03-13 16:25:04,174]

[DNIS: ]

[ANI: VoiceObjects Administrator]

Gender: male Age: 44

 

[Category: INFO]

[Log Name: Log caller data for dialog analysis]

[Label: ][Ref ID: 0.135.149:OVAPac1617bc0000000000003a03000001114bbf400d_BVO_Log]

[VSN: Tutorial]

[Dialog ID: OVAPac1617bc00000000000027a9000001114bbb7c64]

[TS: 2007-03-13 16:37:28,000]

[DNIS: ]

[ANI: VoiceObjects Administrator]

Gender: male Age: 54