1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

Added phpdoc for all methods and added the typehint for the FormatterInterface

This commit is contained in:
Christophe Coevoet
2011-04-06 00:50:18 +02:00
parent c6f59a7b7c
commit 87332a3e4e
14 changed files with 247 additions and 48 deletions

View File

@@ -22,9 +22,13 @@ use Monolog\Logger;
*/
class JsonFormatter implements FormatterInterface
{
public function format($record)
/**
* {@inheritdoc}
*/
public function format(array $record)
{
$record['message'] = json_encode($record);
return $record;
}
}