<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Denys,<br>
      <br>
      Check your syslog configuration and see to which log file the
      LOCAL0 facility is diverted - maybe you are looking into the wrong
      file.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
    <div class="moz-cite-prefix">On 07/31/2019 11:57 AM, Denys Pozniak
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+x3AxqiKi-Tfxn_9QBr2096aKQ6SzZJCr5wiYkdTEVF33dtYg@mail.gmail.com">
      <div dir="ltr">
        <div>Hello!</div>
        <div><br>
        </div>
        <div>Please help me to configure loglevel prefix priority (like
          INFO, NOTICE, WARNING, ERROR) for /var/log/messages.</div>
        <div>As you can see below OpenSIPS does not display it, but for
          example, Rtpengine does.</div>
        <div><br>
        </div>
        <div>####### Global Settings ########<br>
          log_level=3<br>
          log_stderror=no<br>
          log_facility=LOG_LOCAL0<br>
        </div>
        <div>...</div>
        <div><br>
        </div>
        ####### Routing Logic ########<br>
        <br>
        route{<br>
                xlog("L_INFO","info_New message rm=$rm / si=$si / ru=$ru
        / ci=$ci \n");<br>
                xlog("L_NOTICE","notice_New message rm=$rm / si=$si /
        ru=$ru / ci=$ci \n");<br>
                xlog("L_WARN","warning_New message rm=$rm / si=$si /
        ru=$ru / ci=$ci \n");<br>
                xlog("L_ERR","error_New message rm=$rm / si=$si / ru=$ru
        / ci=$ci \n");<br>
        <div>...<br>
        </div>
        <div><br>
        </div>
        <div>[root@localhost opensips]# tail -f /var/log/messages<br>
        </div>
        <div>Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]:
          notice_New message rm=INVITE / si=192.168.56.1 / ru=<a
            href="mailto:sip%3A55555@192.168.56.3"
            moz-do-not-send="true">sip:55555@192.168.56.3</a> / ci=<a
            href="mailto:008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1"
            moz-do-not-send="true">008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1</a><br>
          Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]:
          warning_New message rm=INVITE / si=192.168.56.1 / ru=<a
            href="mailto:sip%3A55555@192.168.56.3"
            moz-do-not-send="true">sip:55555@192.168.56.3</a> / ci=<a
            href="mailto:008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1"
            moz-do-not-send="true">008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1</a><br>
          Jul 27 15:28:31 localhost /usr/sbin/opensips[32644]: error_New
          message rm=INVITE / si=192.168.56.1 / ru=<a
            href="mailto:sip%3A55555@192.168.56.3"
            moz-do-not-send="true">sip:55555@192.168.56.3</a> / ci=<a
            href="mailto:008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1"
            moz-do-not-send="true">008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1</a><br>
          Jul 27 15:28:31 localhost rtpengine: [1564255711.862367] INFO:
          [<a
            href="mailto:008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1"
            moz-do-not-send="true">008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1</a>]:
          Received command 'offer' from <a
            href="http://10.10.200.43:53649" moz-do-not-send="true">10.10.200.43:53649</a><br>
          Jul 27 15:28:31 localhost rtpengine: [1564255711.862410]
          NOTICE: [<a
            href="mailto:008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1"
            moz-do-not-send="true">008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1</a>]:
          Creating new call<br>
          Jul 27 15:28:31 localhost rtpengine: [1564255711.862684] INFO:
          [<a
            href="mailto:008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1"
            moz-do-not-send="true">008BDC86-DDB1-E911-80AA-492E68E5C084@192.168.56.1</a>]:
          Replying to 'offer' from <a href="http://10.10.200.43:53649"
            moz-do-not-send="true">10.10.200.43:53649</a> (elapsed time
          0.000304 sec)<br>
        </div>
        <div><br>
        </div>
        <div>[root@localhost opensips]# opensips -V<br>
          version: opensips 3.0.0 (x86_64/linux)<br>
          flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
          PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC,
          FAST_LOCK-ADAPTIVE_WAIT<br>
          ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
          MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
          poll method support: poll, epoll, sigio_rt, select.<br>
          main.c compiled on 13:02:44 May 30 2019 with gcc 4.8.5<br>
        </div>
        <div><br>
        </div>
        [root@localhost opensips]# cat /etc/redhat-release<br>
        CentOS Linux release 7.6.1810 (Core)<br>
        <div><br>
        </div>
        <div><br>
        </div>
        -- <br>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">
          <div dir="ltr"><br>
            <div>
              <div>BR,</div>
              <div>Denys Pozniak<br>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>