Skip to content

Commit a3f7c4a

Browse files
committed
Add getStream to the StreamHandler
1 parent f56f296 commit a3f7c4a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Monolog/Handler/StreamHandler.php

+10
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ public function close()
6565
$this->stream = null;
6666
}
6767

68+
/**
69+
* Return the currently active stream if it is open
70+
*
71+
* @return resource|null
72+
*/
73+
public function getStream()
74+
{
75+
return $this->stream;
76+
}
77+
6878
/**
6979
* {@inheritdoc}
7080
*/

0 commit comments

Comments
 (0)