note 123249 added to function.syslog

From: Date: Wed, 24 Oct 2018 18:43:52 +0000
Subject: note 123249 added to function.syslog
Groups: php.notes 
Request: Send a blank email to php-notes+get-209492@lists.php.net to get a copy of this message
This function sends messages in BSD Syslog RFC 3164 format (https://tools.ietf.org/html/rfc3164). To see the raw messages being sent by PHP to the logging socket, first stop your syslog/rsylsog/ng-syslog service, then listen to the logging socket with the netcat-openbsd package: nc -U -l /dev/log Now, log something from PHP: <?php syslog(LOG_LOCAL1|LOG_INFO, "Test from PHP"); ?> You will see the rfc3164 output from netcat: <142>Oct 24 14:32:51 php: Test from PHP ---- Server IP: 208.43.231.9 Probable Submitter: 166.137.244.111 ---- Manual Page -- http://php.net/manual/en/function.syslog.php Edit -- https://master.php.net/note/edit/123249 Del: integrated -- https://master.php.net/note/delete/123249/integrated Del: useless -- https://master.php.net/note/delete/123249/useless Del: bad code -- https://master.php.net/note/delete/123249/bad+code Del: spam -- https://master.php.net/note/delete/123249/spam Del: non-english -- https://master.php.net/note/delete/123249/non-english Del: in docs -- https://master.php.net/note/delete/123249/in+docs Del: other reasons-- https://master.php.net/note/delete/123249 Reject -- https://master.php.net/note/reject/123249 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209492) next »