Tropo is part of CiscoLearn More

generalLogSecurity

Because Tropo cannot anticipate all situations where a Scripting language, your application, or an action like fetching a URL that contains private data might log information that you wish to be hidden. To prevent this potential for log leakage, this function turns off all logging on the Tropo platform. When called with a value of suppress (like generalLogSecurity("suppress"), nothing that happens in your script from that point forward will be logged. Even information you explicitly log with the log() function will be dropped without logging it.

To turn logging back on after you have asked Tropo to suppress logging, call generalLogSecurity again with a value of none: generalLogSecurity("none"). All logs that occur starting from the point at which you call it will now appear.

Because all Tropo functions are blocking functions, it is safe to enable logging after running a Tropo function without fear that residual activities will occur and be logged.

If logging is disabled with generalLogSecurity, instructing Tropo to log a prompt with promptLogSecurity("none") or asrLogSecurity("mask") will not cause Tropo to log that data. Supressing logs with generalLogSecurity is absolute.

Parameters

state

String
(Required)
Default: 
none

Set to "suppress" to disable all logging in Tropo. Set to "none" to turn off log suppression and begin logging again.

Examples

  generalLogSecurity("suppress");
say("this is not logged");
ask("neither is this", { asrLogSecurity: 'mask' });
log("not even this");
generalLogSecurity("none");
say("everything is logged again now");  
generalLogSecurity "suppress"
say "this is not logged"
ask "neither is this", { :asrLogSecurity => 'mask' }
log "not even this"
generalLogSecurity "none"
say "everything is logged again now"
generalLogSecurity("suppress");
say("this is not logged");
ask("neither is this", array("asrLogSecurity" => 'mask' ));
log("not even this");
generalLogSecurity("none");
say("everything is logged again now");
generalLogSecurity("suppress")
say("this is not logged")
ask("neither is this", { "asrLogSecurity": 'mask' })
log("not even this")
generalLogSecurity("none")
say("everything is logged again now")
generalLogSecurity("suppress")
say("this is not logged")
ask("neither is this", ["asrLogSecurity": 'mask'] )
log("not even this")
generalLogSecurity("none")
say("everything is logged again now")