Bug 60247 - Changes to LogLevel for 404 errors in 2.4 not reflected in Documentation
Summary: Changes to LogLevel for 404 errors in 2.4 not reflected in Documentation
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 2.4-HEAD
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: HTTP Server Documentation List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-12 22:28 UTC by ysdev
Modified: 2016-10-12 22:28 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 72.15.99.187] 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