![Apache 将非错误记录到错误日志](https://linux22.com/image/744162/Apache%20%E5%B0%86%E9%9D%9E%E9%94%99%E8%AF%AF%E8%AE%B0%E5%BD%95%E5%88%B0%E9%94%99%E8%AF%AF%E6%97%A5%E5%BF%97.png)
Apache HTTPD 2.4 Windows 正在将消息记录到其错误日志中 - 例如在启动时:
[Wed Oct 23 15:15:38.106903 2019] [mpm_winnt:notice] [pid 2976:tid 628] AH00364: Child: All worker threads have exited.
[Wed Oct 23 15:15:40.011902 2019] [mpm_winnt:notice] [pid 2880:tid 552] AH00455: Apache/2.4.33 (Win64) OpenSSL/1.1.0h configured -- resuming normal operations
[Wed Oct 23 15:15:40.012903 2019] [mpm_winnt:notice] [pid 2880:tid 552] AH00456: Apache Lounge VC15 Server built: Mar 28 2018 12:38:12
[Wed Oct 23 15:15:40.012903 2019] [core:notice] [pid 2880:tid 552] AH00094: Command line: 'D:\\apache\\bin\\httpd.exe -d D:/apache -d D:/apache -f d:\\config\\apache\\httpd.conf'
[Wed Oct 23 15:15:40.017900 2019] [mpm_winnt:notice] [pid 2880:tid 552] AH00418: Parent: Created child process 16368
[Wed Oct 23 15:15:41.213799 2019] [mpm_winnt:notice] [pid 16368:tid 488] AH00354: Child: Starting 30 worker threads.
由于我们拥有强大的错误监控功能,因此这会导致误报。我们如何才能让 Apache “表现良好”?
ErrorLog "|bin/rotatelogs.exe -l D:/log/errors/apache.errors.%Y%m%d.log 86400"
LogLevel error