从 PHP 到 Kiwi Syslog Server 的系统日志问题


Troubles with Syslog to Kiwi Syslog Server from PHP

我正在尝试通过使用PHP中的syslog函数登录到Windows Kiwi Syslog Server来测试它的安装,如下所示:

syslog(LOG_WARNING, "test123");

该函数返回 true,但日志未显示在本地主机上运行的 Kiwi 中。是否需要任何配置才能使系统日志在Windows中使用PHP工作?

这个syslog((函数调用是一个unix的东西。根据 php 系统日志手册:

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

因此,除非它读取事件日志,否则您的消息不太可能最终进入 kiwi syslog 服务器。