| CCXML 1.0-W3C Development Guide | Home | Frameset Home |
| expr | Data Type: (ECMAScript Expression) | Default: none - attribute is required |
| The expr attribute is a required parameter for the <log> element that is an ECMAscript expression evaluating to a string to be logged. This string will be output in the Voxeo Realtime Logger when the <log> element is encountered. | ||
| label | Data Type: (ECMAScript Expression) | Default: none - attribute is optional |
| Not Enabled The label attribute is an ECMAScript expression that returns a character string which is used as an identifier, or 'marker' indicating the reason for the <log> statement. | ||
| <?xml version="1.0" encoding="UTF-8"?>
<ccxml version="1.0" xmlns="http://www.w3.org/2002/09/ccxml"> <var name="BenFranklin" expr="'When the people find that they can vote themselves money, that will herald the end of the republic.'"/> <eventprocessor> <transition event="connection.alerting"> <accept/> <log expr="'***** CALL ACCEPTED *****'"/> </transition> <transition event="connection.connected"> <log expr="'*** BEN FRANKLIN SAYS: ' + BenFranklin"/> <exit/> </transition> <transition event="error.*"> <log expr="'ERROR OCCURRED: '+ event$.name"/> <exit/> </transition> </eventprocessor> </ccxml> |
| ANNOTATIONS: EXISTING POSTS |
puneetb
|
|
| Hello,
Is there a way to log some expression on more than one line without using multiple log statements? For example - <log expr="'Two \n Lines'"/> should output - Two Lines in Voxeo Debugger but instead \n is ignored and both words appear on the same line. Is there a way to do it? I do not want to use multiple log statements as it clutters the code. Thanks. PB |
|
sgolberg
|
|
| Hello,
At this time it is not possible to force log message been split into separate lines. You have to use another log statements to move log on another line. Sorry for the inconvenience. Regards, Serguei Golberg |
|
Anugandula.Suresh
|
|
| HI all,
Am using <log>. Am printing some text using expr attribute. But am unable to find the location of the log file. I want to see whether the text is displayed inside the log file or not. Please send me how to find the log file and how to use the log tag. Prior to use the <log> do we need to create any files like property file etc. Thanks, Suresh. |
|
voxeoJeffK
|
|
| Hello Suresh,
You don't nee to create any additional files, and <log> will automatically write to Prophecy log files. For a Hosted account log files are located in the Files, Logs & Reports section of your account. For Staging applications you can also use the Application Debugger to display logging in real time. For a local installation of Prophecy the log files will be in voxeo/logs/ folder. CCXML <log> writes will go into the vcs/ logs, and VXML <log> will write to the vxml/ logs folder. Additionally you can use Prophecy LogViewer to display combined logging in real time. Regards, Jeff Kustermann Voxeo Corporation |
| login |