1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 06:52:34 +01: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'],
'ip' => $this->serverData['REMOTE_ADDR'],
'http_method' => $this->serverData['REQUEST_METHOD'],
'server_name' => $this->serverData['SERVER_NAME'],
)
);