GCS Amplitude
GCS Amplitude

Apache Module mod_log_debug

LogMessage "/foo/ has been requested"

LogMessage "subrequest to /foo/" hook=typechecker expr=%{ISSUBREQ} The default log_transaction hook is not executed for sub-requests, therefore we have to use a different hook.

LogMessage "IPv6 timeout from %{REMOTEADDR}" "expr=-T %{IPV6} && %{REQUESTSTATUS} = 408"Note the placing of the double quotes for the

argument. LogMessage "%{reqenv:X-Foo}" hook=all Together with microsecond time stamps in the error log,

also lets you determine the times spent in the different parts of the request processing. | |---|

LogMessage message [hook=hook] [expr=expression]

This directive causes a user defined message to be logged to the error log. The message can use variables and functions from the ap_expr syntax. References to HTTP headers will not cause header names to be added to the Vary header. The messages are logged at loglevel info.

The hook specifies before which phase of request processing the message will be logged. The following hooks are supported:

. The special value all

is also supported, causing a message to be logged at each phase. Not all hooks are executed for every request.

The optional expression allows to restrict the message if a condition is met. The details of the expression syntax are described in the ap_expr documentation. References to HTTP headers will not cause the header names to be added to the Vary header.

Modules | Directives | FAQ | Glossary | Sitemap

Apache HTTP Server Version 2.4

Modules

Modules | Directives | FAQ | Glossary | Sitemap

Apache Module mod_log_debug

Available Languages: en | fr

en

Available Languages: en | fr

Apache License, Version 2.0

Copyright 2014 The Apache Software Foundation.Licensed under the Apache License, Version 2.0.