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

Add contents of $_SERVER['SERVER_NAME'] as 'server_name'. Useful for

figuring out the source of log messages when you have a lot of vhosts.
This commit is contained in:
Marc Abramowitz
2012-04-20 08:08:33 -07:00
parent d348b2c252
commit 365f3a932d

View File

@@ -52,6 +52,7 @@ class WebProcessor
'url' => $this->serverData['REQUEST_URI'], 'url' => $this->serverData['REQUEST_URI'],
'ip' => $this->serverData['REMOTE_ADDR'], 'ip' => $this->serverData['REMOTE_ADDR'],
'http_method' => $this->serverData['REQUEST_METHOD'], 'http_method' => $this->serverData['REQUEST_METHOD'],
'server_name' => $this->serverData['SERVER_NAME'],
) )
); );