1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

Add getter for the StreamHandler URL, fixes #797

This commit is contained in:
Jordi Boggiano
2016-05-26 22:44:25 +01:00
parent 5e6b844653
commit 39aeecefae

View File

@@ -75,6 +75,16 @@ class StreamHandler extends AbstractProcessingHandler
return $this->stream;
}
/**
* Return the stream URL if it was configured with a URL and not an active resource
*
* @return string|null
*/
public function getUrl()
{
return $this->url;
}
/**
* {@inheritdoc}
*/