Tropo is part of CiscoLearn More

log

This function outputs a single string of debugging text to Tropo's application debugger.

Note
In PHP, the function is named _log to prevent a naming conflict with a built-in PHP function of the same name.

When the line is written into the Tropo log, in order to make it easier for you to locate, the log line will begin with [### USER_LOG ###]. Thus, if you log "I'm here to rescue you," the log line will look something like this:

1977-05-27T13:31:08.929Z aa-23.tropo.com INFO PRISM
29890/101914/3065426d026f4fb9ad5d52d5132091da/bd89f6213847a5e18fc816ae637a666d/1/0/
[Tropo-Thread-bd89f6213847a5e18fc816ae637a666d]/#TROPO#:
ApplicationInstance[https:\s\sexample.com\s2187.rb , bd89f6213847a5e18fc816ae637a666d] :
[### USER_LOG ###] I'm here to rescue you #[N\sA][N\sA][N\sA][N\sA][?][?]

Parameters

string

String

This is the parameter that designates the string to send to the debugger.

Examples

  say("Welcome to Tropo!");
log("Caller ID: " + currentCall.callerID);  
say "Welcome to Tropo!"
log "Call was from: " + $currentCall.callerID
<?php
    say("Welcome to Tropo!");
    _log("Call was from: " . $currentCall->callerID);
?>
say("Welcome to Tropo!")
log("Call was from: " + currentCall.callerID)
say("Welcome to Tropo!")
log("Call was from: " + currentCall.callerID)