ソースを参照

Add getter for the StreamHandler URL, fixes #797

Jordi Boggiano 9 年 前
コミット
39aeecefae
1 ファイル変更10 行追加0 行削除
  1. 10 0
      src/Monolog/Handler/StreamHandler.php

+ 10 - 0
src/Monolog/Handler/StreamHandler.php

@@ -75,6 +75,16 @@ class StreamHandler extends AbstractProcessingHandler
         return $this->stream;
         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}
      * {@inheritdoc}
      */
      */