Bug 60247

Summary: Changes to LogLevel for 404 errors in 2.4 not reflected in Documentation
Product: Apache httpd-2 Reporter: ysdev
Component: DocumentationAssignee: HTTP Server Documentation List <docs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description ysdev 2016-10-12 22:28:06 UTC
Apparently a "Bug" was fixed in 2.4 to omit 404 "File not found" from LogLevel Error and downgrade them to LogLevel Info [1].

Discussion leading up to the change: [2]

This change broke the documentation.

The ErrorLog directive [3] clearly contains an outdated example:

  A typical log message follows:

  [Fri Sep 09 10:42:29.902022 2011] [core:error] [pid 35708:tid 4328636416] [client] File does not exist: /usr/local/apache2/htdocs/favicon.ico

The LogLevel shown in the example is now wrong, and with the default LogLevel of "warn", the message would never make it to the error log in the first place.

The LogLevel directive [4] does not mention which LogLevel is required in order to show "File not found" errors.

Discussion spawned by the lack of proper documentation: [5]

The documentation for both the ErrorLog and LogLevel directives should reflect the changed behavior, and should include an example on how to restore or approximate the previous behavior. I'm currently experimenting with:

LogLevel warn core:info

So far it seems to work as intended, i.e. it works like 2.2 and prior versions did.

[1] https://svn.apache.org/viewvc?view=revision&revision=1180328
[2] https://bz.apache.org/bugzilla/show_bug.cgi?id=35768
[3] http://httpd.apache.org/docs/2.4/logs.html
[4] http://httpd.apache.org/docs/2.4/mod/core.html#loglevel
[5] http://www.gossamer-threads.com/lists/apache/dev/422757
Comment 1 Philippe Cloutier 2021-07-16 17:00:59 UTC
Thank you very much for this report
Visibly the ErrorLog documentation no longer contains that outdated example. The ErrorLogFormat documentation seems misleading though.