1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-11 15:44:34 +02:00

Add Apache mod_unique_id's identifier in WebProcessor

mod_unique_id can add a unique ID to every request and also add it to other logfiles. This makes it easy to correlate lines from different logs belonging to the same request. http://httpd.apache.org/docs/2.2/mod/mod_unique_id.html
This commit is contained in:
Matthias Pigulla
2013-10-08 14:31:56 +02:00
parent b5fa119527
commit a2b77b2750

View File

@@ -54,6 +54,7 @@ class WebProcessor
'http_method' => isset($this->serverData['REQUEST_METHOD']) ? $this->serverData['REQUEST_METHOD'] : null,
'server' => isset($this->serverData['SERVER_NAME']) ? $this->serverData['SERVER_NAME'] : null,
'referrer' => isset($this->serverData['HTTP_REFERER']) ? $this->serverData['HTTP_REFERER'] : null,
'unique_id' => isset($this->serverData['UNIQUE_ID']) ? $this->serverData['UNIQUE_ID'] : null,
)
);