<div><font face="Arial">Hi <span style="white-space: pre-wrap;">Liviu:</span></font></div><div><span style="white-space: pre-wrap;"><font face="Arial"> thanks for your suggestion。 </font></span></div><div><font face="Arial"><span style="white-space: pre-wrap;"> I‘m sure the file and the directory has -rwxrwxrwx </span>permissions and</font><span style="font-family: Arial; white-space: pre-wrap;"> I use root did it with opensips2.2.1 and centos6.6。</span></div><div><span style="white-space: pre-wrap;"><font face="Arial"> I make /var/log/opensips.log work as following:</font></span></div><div><span style="white-space: pre-wrap;"><font face="Arial"> </font></span><span style="color: rgb(68, 68, 68); font-family: tahoma, arial, sans-serif;">touch /var/log/opensips.log</span></div><div><span style="color: rgb(68, 68, 68); font-family: tahoma, arial, sans-serif;"> add “ </span><span style="color: rgb(68, 68, 68); font-family: tahoma, arial, sans-serif;">local0.* /var/log/opensips.log ” into /etc/rsyslog.conf</span></div><div><span style="color: rgb(68, 68, 68); font-family: tahoma, arial, sans-serif;"> service rsyslog restart</span></div><div><span style="color: rgb(68, 68, 68); font-family: tahoma, arial, sans-serif;"> But when I change "/var/log/opensips.log" to "/export/opensips/log/opensips.log" or"/usr/local/opensips.log" ..eg it doesn't work.</span></div><div><span style="color: rgb(68, 68, 68); font-family: tahoma, arial, sans-serif;"> I'm </span><font color="#444444" face="tahoma, arial, sans-serif">confuse with it。</font></div><div><span style="color: rgb(68, 68, 68); font-family: tahoma, arial, sans-serif;"></span><span style="white-space: pre-wrap;"><font face="Arial"> </font></span></div><div><span style="white-space: pre-wrap;"><font face="Arial">liu jinlong </font></span></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Liviu Chircu";<liviu@opensips.org>;</div><div><b>发送时间:</b> 2016年9月22日(星期四) 下午3:42</div><div><b>收件人:</b> "devel"<devel@lists.opensips.org>; <wbr></div><div></div><div><b>主题:</b> Re: [OpenSIPS-Devel] opensips log file dose not work</div></div><div><br></div>
<p><tt>Hi!</tt></p>
<p><tt>If you made "/var/log/opensips.log" work, then please ensure
write permissions on "/export/opensips/log/" for the user you're
running OpenSIPS with, so it can create the file.<br>
</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 22.09.2016 09:37, 龙 wrote:<br>
</div>
<blockquote cite="mid:tencent_0BA2FD233C46BDB956D1CBF1@qq.com" type="cite">
<div>hi everone:</div>
<div> I want change opensips log file location ,and I
make it work in /var/log/opensips.log</div>
<div> but when change the directory to an
/export/opensips/log/opensips.log it dose not work. I don't
kown why.</div>
<div> does it has samething else to do? I need your
help.</div>
<div><br>
</div>
<div>liujinlong</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br></div>