1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00

Renamed message to record

This commit is contained in:
Jordi Boggiano
2011-02-25 22:54:01 +01:00
parent efc2bd656b
commit 6c24217c56
16 changed files with 175 additions and 176 deletions

View File

@@ -36,7 +36,7 @@ class StreamHandler extends AbstractHandler
}
}
public function write($message)
public function write($record)
{
if (null === $this->stream) {
if (!$this->url) {
@@ -47,7 +47,7 @@ class StreamHandler extends AbstractHandler
throw new \UnexpectedValueException('The stream could not be opened, "'.$this->url.'" may be an invalid url.');
}
}
fwrite($this->stream, (string) $message['message']);
fwrite($this->stream, (string) $record['message']);
}
public function close()