Make absolutely certain that there isn&#39;t a permissions issue with FreeSWITCH writing to the /var/log/ directory.<br>-MC<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 7:02 AM, Bi,Xianchun <span dir="ltr">&lt;<a href="http://xianchun.bi">xianchun.bi</a>@<a href="http://quanshi.com">quanshi.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="ZH-CN">

<div>

<p class="MsoNormal"><span lang="EN-US">Hi,</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">I have installed FreeSWITCH in my test
server, the OS is Ubuntu 8.04 Server</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">In module configuration file conf/autoload_configs/modules.conf.xml,
log_file module is set active.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">&lt;load
module=&quot;mod_logfile&quot;/&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">And in the log_file configuration file
conf/autoload_configs/logfile.conf.xml, the settings are as following:</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">&lt;configuration
name=&quot;logfile.conf&quot; description=&quot;File Logging&quot;&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">  &lt;settings&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">   &lt;!-- true to auto rotate on
HUP, false to open/close --&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">  &lt;param
name=&quot;rotate-on-hup&quot; value=&quot;true&quot;/&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">  &lt;/settings&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">  &lt;profiles&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">    &lt;profile
name=&quot;default&quot;&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">     
&lt;settings&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">       
&lt;!-- File to log to --&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">       
&lt;param name=&quot;logfile&quot;
value=&quot;/var/log/freeswitch.log&quot;/&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">       
&lt;!-- At this length in bytes rotate the log file (0 for never) --&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">       
&lt;param name=&quot;rollover&quot; value=&quot;10485760&quot;/&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">    &lt;!-- Uncomment to
prefix all log lines by the session&#39;s uuid  --&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">    &lt;!-- &lt;param
name=&quot;uuid&quot; value=&quot;true&quot; /&gt; --&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">     
&lt;/settings&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">     
&lt;mappings&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">  &lt;!--</span></p>

<p class="MsoNormal"><span lang="EN-US">       name
can be a file name, function name or &#39;all&#39;</span></p>

<p class="MsoNormal"><span lang="EN-US">       value
is one or more of debug,info,notice,warning,err,crit,alert,all</span></p>

<p class="MsoNormal"><span lang="EN-US">       Please
see comments in console.conf.xml for more information</span></p>

<p class="MsoNormal"><span lang="EN-US">  --&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">  &lt;map name=&quot;all&quot;
value=&quot;debug,info,notice,warning,err,crit,alert&quot;/&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">     
&lt;/mappings&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">    &lt;/profile&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">  &lt;/profiles&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US">&lt;/configuration&gt;</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">But the logfile never appers. I also try
using touch to create a dummy file, but the file never grow.</span></p>

<p class="MsoNormal"><span lang="EN-US">Restarting FreeSWITCH has no effect.</span></p>

<p class="MsoNormal"><span lang="EN-US">What wrong with my settings?</span></p>

<p class="MsoNormal"><span lang="EN-US">Anyone could give any suggestion?</span></p>

<p class="MsoNormal"><span lang="EN-US">Thanks in advance.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

</div>

</div>


<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><br>
<br></blockquote></div><br>