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:
@@ -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'],
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user