![我怎样才能不在 apache 错误日志中记录通知?](https://linux22.com/image/716781/%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E4%B8%8D%E5%9C%A8%20apache%20%E9%94%99%E8%AF%AF%E6%97%A5%E5%BF%97%E4%B8%AD%E8%AE%B0%E5%BD%95%E9%80%9A%E7%9F%A5%EF%BC%9F.png)
我定期检查 Apache 错误日志。我只想查看实际存在的问题。
在我的 httpd.conf 文件中,我有LogLevel warn
。我在系统上执行了 grep 来查找可能设置不同的任何其他位置,但它们都处于警告级别。
以下“错误”被重复记录,这使得很难找到实际问题。
[Sun Jan 21 03:37:07.686531 2018] [auth_digest:notice] [pid 1109] AH01757: generating secret for digest authentication ...
[Sun Jan 21 03:37:07.713539 2018] [lbmethod_heartbeat:notice] [pid 1109] AH02282: No slotmem from mod_heartmonitor
[Sun Jan 21 03:37:09.575654 2018] [mpm_prefork:notice] [pid 1109] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/5.6.33 configured -- resuming normal operations
[Sun Jan 21 03:37:09.575677 2018] [core:notice] [pid 1109] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Jan 22 09:34:42.928196 2018] [mpm_prefork:notice] [pid 1109] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Jan 22 09:37:56.685298 2018] [suexec:notice] [pid 1127] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)