|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-29 09:31 UTC] tony2001@php.net
[2007-05-29 12:19 UTC] vermersch+php at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 14:00:01 2025 UTC |
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