diff options
-rw-r--r-- | src/Monolog/Handler/StreamHandler.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Monolog/Handler/StreamHandler.php b/src/Monolog/Handler/StreamHandler.php index 8e02e58..8936e67 100644 --- a/src/Monolog/Handler/StreamHandler.php +++ b/src/Monolog/Handler/StreamHandler.php @@ -76,6 +76,16 @@ class StreamHandler extends AbstractProcessingHandler } /** + * 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} */ protected function write(array $record) |