#41526 [Opn->Bgs]: Syslog add program to the log message (not duplicate of #36808)
| From: | tony2001@php.net | Date: | Tue, 29 May 2007 09:31:01 +0000 |
| Subject: | #41526 [Opn->Bgs]: Syslog add program to the log message (not duplicate of #36808) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113146@lists.php.net to get a copy of this message | ||
ID: 41526
Updated by: tony2001@php.net
Reported By: vermersch+php at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Linux Ubuntu feisty
PHP Version: 5.2.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-05-29 08:07:15] vermersch+php at gmail dot com
Description:
------------
I use syslog-ng as logging system and call it with php to log my exact
message.
The problem is that PHP add the ident string of my openlog to the
message.
My syslog-ng destination is configured like this :
destination testing {
file(
"/server/alpha/myapp/testing.log"
template("$MESSAGE\n")
);
};
log {
source(s_all);
destination(testing);
};
If I leave the ident string empty, I still have the : added
Reproduce code:
---------------
function syslog($logFacility = false) {
$r = openlog("testing", LOG_CONS, LOG_USER);
if(!$r) return false;
$r = syslog(LOG_NOTICE, "my message to log");
if(!$r) return false;
closelog();
}
Expected result:
----------------
The result I expect is :
my message to log
without any garbage
Actual result:
--------------
The actual result is :
testing: my message to log
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41526&edit=1