]> git.pld-linux.org Git - packages/apache.git/commitdiff
fix broken ErrorLogFormat. refs e13a60a
authorElan Ruusamäe <glen@delfi.ee>
Sat, 17 Oct 2015 14:39:59 +0000 (17:39 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 17 Oct 2015 14:43:07 +0000 (17:43 +0300)
spaces need to be backslash escaped for optional fields (like client)
do not break existing log format, which log parsers assume, log vhost
like client optionally.
also do not enable it by default. stick to compiled in default

apache-httpd.conf

index a66d651d07181a5e737225f5ca2f7b5c0abded0e..df601c7ded05df654aa95941de8dc8f9496b7c7b 100644 (file)
@@ -47,7 +47,13 @@ ServerName localhost
 # logged here. If you *do* define an error logfile for a <VirtualHost>
 # container, that host's errors will be logged there and not here.
 ErrorLog logs/error_log
-ErrorLogFormat "%v [%t] [%l] [pid %P] [client %a] %M %m"
+
+# ErrorLogFormat [connection|request] format
+# Format specification for error log entries
+# https://httpd.apache.org/docs/2.4/mod/core.html#errorlogformat
+# There is no default value, Apache uses different built in function if
+# ErrorLogFormat is not defined.
+#ErrorLogFormat "[%t] [%l] [pid\ %P] [client\ %a] [vhost\ %v] %M %m"
 
 # LogLevel: Control the number of messages logged to the error_log.
 # Possible values include: debug, info, notice, warn, error, crit,
This page took 0.032156 seconds and 4 git commands to generate.