1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 20:27:31 +02:00

Fixed previous commit

This commit is contained in:
Jordi Boggiano
2011-04-25 15:51:10 +02:00
parent 9e7471f77e
commit 252058251d
2 changed files with 5 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ class WildfireFormatter extends LineFormatter implements FormatterInterface
// Create JSON object describing the appearance of the message in the console
$json = json_encode(array(
array(
'Type' => $this->logLevels($record['level']),
'Type' => $this->logLevels[$record['level']],
'File' => '',
'Line' => '',
),

View File

@@ -34,6 +34,7 @@ class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
public function recordProvider()
{
$record = array(
'level' => Logger::ERROR,
'level_name' => 'ERROR',
'channel' => 'meh',
'datetime' => new \DateTime,