1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 10:06:08 +02:00

Added the support of a logging context

This commit is contained in:
Christophe Coevoet
2011-06-01 00:10:38 +02:00
parent a8d4fc4a34
commit c1675c59d8
13 changed files with 74 additions and 60 deletions

View File

@@ -33,7 +33,7 @@ abstract class MailHandler extends AbstractProcessingHandler
}
if (!empty($messages)) {
$this->send($this->getFormatter()->formatBatch($messages));
$this->send((string) $this->getFormatter()->formatBatch($messages));
}
}
@@ -49,8 +49,6 @@ abstract class MailHandler extends AbstractProcessingHandler
*/
protected function write(array $record)
{
$content = $record['message'];
$this->send($content);
$this->send((string) $record['formatted']);
}
}