setStream($stream); } /** * @param string $separator */ public function setSeparator($separator) { $this->separator = $separator; } public function setStream(WritableStreamInterface $stream) { $this->stream = $stream; } public function write($level, $message) { $this->stream->write("$level: $message" . $this->separator); } }