Syslog:在我的PHP应用程序中使用Syslog时,日志错误的配置是什么

Syslog:在我的PHP应用程序中使用Syslog时,日志错误的配置是什么,php,logging,error-handling,syslog,Php,Logging,Error Handling,Syslog,如何在Windows中为我的PHP应用程序配置Syslog?我在互联网上冲浪显示许多服务器需要安装 使用PHP获取系统日志的配置是什么 // open syslog, include the process ID and also send // the log to standard error, and use a user defined // logging mechanism openlog("myScriptLog", LOG_PID | LOG_PERROR, LOG_LO

如何在Windows中为我的PHP应用程序配置Syslog?我在互联网上冲浪显示许多服务器需要安装

使用PHP获取系统日志的配置是什么

    // open syslog, include the process ID and also send
// the log to standard error, and use a user defined
// logging mechanism
openlog("myScriptLog", LOG_PID | LOG_PERROR, LOG_LOCAL0);

// some code

if (authorized_client()) {
    // do something
} else {
    // unauthorized client!
    // log the attempt
    $access = date("Y/m/d H:i:s");
    syslog(LOG_WARNING, "Unauthorized client: $access {$_SERVER['REMOTE_ADDR']} ({$_SERVER['HTTP_USER_AGENT']})");
}

closelog();

要了解更多信息,请检查此

PHP默认函数bool syslog(int$priority,string$message)只记录Windows默认事件查看器上显示的错误和警告,而不配置PHP.ini文件中的任何更改,我需要将“myScriptLog”文件放在何处其配置是什么??