简体   繁体   English

从Syslog到PHP的Kiwi Syslog服务器的麻烦

[英]Troubles with Syslog to Kiwi Syslog Server from PHP

I'm trying to test an installation of Windows Kiwi Syslog Server by logging to it using the syslog function in PHP as follows: 我正在尝试使用PHP中的syslog函数通过登录Windows Kiwi Syslog Server来测试其安装,如下所示:

syslog(LOG_WARNING, "test123");

The function returns true but the log doesn't show up in Kiwi which is running on the localhost. 该函数返回true,但日志未显示在在本地主机上运行的Kiwi中。 Is there any configuration required to enable syslog to work using PHP in Windows? 是否需要任何配置才能使syslog在Windows中使用PHP正常工作?

This syslog() function call is a unix thing. 这个syslog()函数调用是unix的事情。 According to the php syslog manual : 根据php syslog手册

Notes
On Windows NT, the syslog service is emulated using the Event Log. 

So it is unlikely that your messages will end up in kiwi syslog server unless it reads the EventLog. 因此,除非它读取EventLog,否则您的消息不太可能最终出现在kiwi syslog服务器中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM