[OpenSIPS-Users] Run Server in background with maximum debug to log file

Wasin Thiengkunagrit wasin.th at gmail.com
Sun Jan 11 04:34:31 CET 2009


Hi Ali Jawad,

 According to http://top12345tw.blogspot.com/2008/05/openser.html ,
It's explain that when you set "log_stderror=yes" the log will only
print out on standard output. Please try to set "log_stderror=no" and
see if the log was printed into syslog file. Additionally you can
redirect the log result to another file (which is not syslog) by doing
this steps
 1. Set the "log_facility=LOG_LOCAL7"
 2. edit file /etc/syslog.conf  by adding this line to the end of the
file "local7.* /var/log/opensips"
 3. create the initial log file with command "$echo "" > /var/log/opensips"
 4. restart syslog deamon with command "$/etc/init.d/sysklogd restart"
 5. restart your OpenSips again this should log every messages into
/var/log/opensips file

Cheers
Wasin





2009/1/11 Ali Jawad <ali.jawad at splendor.net>:
> Hi
> I am running the server with debug=9 and fork=yes and log standard output =
> yes. when I do that I can see a lot of debug info and sip packets in the
> standard output however the log file does show only some notices and xlog
> entries. So when I close putty and get back later or a few days later I have
> to kill and restart openser to see debug info as the log file is not showing
> maximum debug levels unlike the standard output.
>
> Please advice, the goal I want to reach is to see maximum loggin in a file
> so I can check it out without having to restart the server.
>
>
> Thanks
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>



More information about the Users mailing list