#41526 [Bgs]: Syslog add program to the log message (not duplicate of #36808)

From: Date: Tue, 29 May 2007 12:19:30 +0000
Subject: #41526 [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-113150@lists.php.net to get a copy of this message
ID: 41526 User updated by: vermersch+php at gmail dot com Reported By: vermersch+php at gmail dot com Status: Bogus Bug Type: Apache2 related Operating System: Linux Ubuntu feisty PHP Version: 5.2.2 New Comment: The same call with perl works well, it only writes my message. That's why I think it's a php problem. Thanks. Previous Comments: ------------------------------------------------------------------------ [2007-05-29 09:31:00] tony2001@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#113150) next »