/** * Emit a record. * * If the stream was not opened because 'delay' was specified in the * constructor, open it before calling the superclass's emit. */ function emit($record) { if ($this->stream == null) { $this->stream = $this->_open(); } parent::emit($record); }