<div>
                    When you're invoking Lua via FreeSWITCH, there's nowhere to 'print' other than to the console -- so, yes, consoleLog() is the easy way to go.
                </div><div><br></div><div>You could also log to a file if you preferred, Lua documentation can help you there.</div><div><br></div><div>Chad</div>
                <div></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, November 13, 2012 at 9:21 AM, Archana Venugopan wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->


<div>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Thanks. But I want to put print statements within lua script, just to make sure if the script passes that line. In that case too consolelog we need to use?<o:p></o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Regards,<o:p></o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Archana</span><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p></o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p style="margin: 0px; "><b><span lang="EN-US" style="font-size:10.0pt;font-family:
&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> freeswitch-users-bounces@lists.freeswitch.org [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>On Behalf Of </b>Muhammad Shahzad<br>
<b>Sent:</b> 13 November 2012 14:24<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Lua script<o:p></o:p></span></p>
</div>
<p style="margin: 0px; "><o:p>&nbsp;</o:p></p>
<p style="margin: 0px; ">use&nbsp;freeswitch.consoleLog method, e.g.<o:p></o:p></p>
<div>
<p style="margin: 0px; "><o:p>&nbsp;</o:p></p>
</div>
<div>
<p style="margin: 0px; ">freeswitch.consoleLog("ERR","Result of system call: " .. res .. "\n");<o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; "><o:p>&nbsp;</o:p></p>
</div>
<div>
<p style="margin: 0px; ">Thank you.<o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; "><o:p>&nbsp;</o:p></p>
<div>
<p style="margin: 0px; ">On Tue, Nov 13, 2012 at 12:21 PM, Archana Venugopan &lt;<a href="mailto:a.venugopan@mundio.com" target="_blank">a.venugopan@mundio.com</a>&gt; wrote:<o:p></o:p></p>
<div>
<div>
<p style="margin: 0px; ">Hi,<o:p></o:p></p>
<p style="margin: 0px; ">I have lua script in freeswitch, I tried putting print statements there to get that in freeswitch logs. But its not appearing in logs. Would someone please suggest me how to print
 any string to freeswitch logs.<o:p></o:p></p>
<p style="margin: 0px; ">&nbsp;<o:p></o:p></p>
<p style="margin: 0px; ">print(“test”)<o:p></o:p></p>
<p style="margin: 0px; ">&nbsp;<o:p></o:p></p>
<p style="margin: 0px; ">Thanks.<o:p></o:p></p>
<p style="margin: 0px; ">&nbsp;<o:p></o:p></p>
<p style="margin: 0px; ">Regards,<o:p></o:p></p>
<p style="margin: 0px; ">Archana<o:p></o:p></p>
<p style="margin: 0px; ">&nbsp;<o:p></o:p></p>
</div>
</div>
<p style="margin: 0px; "><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
<p style="margin: 0px; "><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p style="margin: 0px; "><o:p>&nbsp;</o:p></p>
</div>
<p style="margin: 0px; ">-- <br>
Muhammad Shahzad<br>
-----------------------------------<br>
CISCO Rich Media Communication Specialist (CRMCS)<br>
CISCO Certified Network Associate (CCNA)<br>
Cell: +49 176 99 83 10 85<br>
MSN: <a href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>
Email: <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><o:p></o:p></p>
</div>
</div>


</div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>