Logging med syslog giver underligt resultat under Windows XP
Jeg forsøger at køre følgende fra en kommandolinie:<?
define_syslog_variables();
openlog("ImportBatchMode", LOG_ODELAY, LOG_USER);
syslog(LOG_NOTICE, "The test.php is running successfully.");
closelog();
?>
I Windows XP's Event Viewer får jeg imidlertid følgende notice:
"The description for Event ID ( 2 ) in Source ( PHP-5.1.0 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: php[2420]; The test.php is running successfully.."
Hvad kan være årsagen til dette?
Versionsoplysninger:
C:\PHP>php --version
PHP 5.1.0 (cli) (built: Nov 23 2005 23:59:35)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2005 Zend Technologies