From: Joshua Slive
The error log is usually written to a file (typically
error_log
on unix systems and error.log
on
Windows and OS/2). On unix systems it is also possible to have the
-server send errors to the syslog
or pipe
-them through a program.
syslog
or pipe
+them to a program.
The format of the error log is relatively free-form and descriptive. But there is certain information that is contained @@ -145,7 +145,7 @@ tail -f error_log
The server access log records all requests processed by the server.
-The location of the access log as well as its contents are controlled
+The location and content of the access log are controlled
by the CustomLog
directive. The LogFormat directive can
@@ -272,13 +272,13 @@ given in double quotes. The request line contains a great deal of
useful information. First, the method used by the client is
GET
. Second, the client requested the resource
/apache_pb.gif
, and third, the client used the protocol
-HTTP/1.0
. It is also possible to log one or more
+HTTP/1.0
. It is also possible to log one or more
parts of the request line independently. For example, the format
string "%m %U%q %H
" will log the method, path,
query-string, and protocol, resulting in exactly the same output as
"%r
".
-
200
%>s
) 200
(%>s
)This format is exactly the same as the Common Log Format, -with the addition of two more fields. The access log under this -format will look like:
+This format is exactly the same as the Common Log Format, with the
+addition of two more fields. Each of the additional fields uses the
+percent-directive %{header}i
, where
+header can be any HTTP request header. The access log under
+this format will look like:
127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"
diff --git a/docs/manual/logs.html.en b/docs/manual/logs.html.en
index d3ebf480c5..cc78301c28 100644
--- a/docs/manual/logs.html.en
+++ b/docs/manual/logs.html.en
@@ -19,7 +19,7 @@
feedback about the activity and performance of the server as well as
any problems that may be occuring. The Apache HTTP Server provides
very comprehensive and flexible logging capabilities. This document
-describes how to configure the various log files, and how to
+describes how to configure its logging capabilities, and how to
understand what the logs contain.
@@ -83,8 +83,8 @@ it.
The error log is usually written to a file (typically
error_log
on unix systems and error.log
on
Windows and OS/2). On unix systems it is also possible to have the
-server send errors to the syslog
or pipe
-them through a program.
+server send errors to syslog
or pipe
+them to a program.
The format of the error log is relatively free-form and
descriptive. But there is certain information that is contained
@@ -145,7 +145,7 @@ tail -f error_log
The server access log records all requests processed by the server.
-The location of the access log as well as its contents are controlled
+The location and content of the access log are controlled
by the CustomLog
directive. The LogFormat directive can
@@ -272,13 +272,13 @@ given in double quotes. The request line contains a great deal of
useful information. First, the method used by the client is
GET
. Second, the client requested the resource
/apache_pb.gif
, and third, the client used the protocol
-HTTP/1.0
.
HTTP/1.0
. It is also possible to log one or more
parts of the request line independently. For example, the format
string "%m %U%q %H
" will log the method, path,
query-string, and protocol, resulting in exactly the same output as
"%r
".
-200
%>s
) 200
(%>s
)This format is exactly the same as the Common Log Format, -with the addition of two more fields. The access log under this -format will look like:
+This format is exactly the same as the Common Log Format, with the
+addition of two more fields. Each of the additional fields uses the
+percent-directive %{header}i
, where
+header can be any HTTP request header. The access log under
+this format will look like:
127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"