mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-20 16:16:37 +02:00
Convert level/levelName to enums (#1656)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Monolog\Formatter;
|
||||
|
||||
use Monolog\Logger;
|
||||
use Monolog\Level;
|
||||
use Monolog\Test\TestCase;
|
||||
|
||||
class FluentdFormatterTest extends TestCase
|
||||
@@ -35,7 +35,7 @@ class FluentdFormatterTest extends TestCase
|
||||
*/
|
||||
public function testFormat()
|
||||
{
|
||||
$record = $this->getRecord(Logger::WARNING, datetime: new \DateTimeImmutable("@0"));
|
||||
$record = $this->getRecord(Level::Warning, datetime: new \DateTimeImmutable("@0"));
|
||||
|
||||
$formatter = new FluentdFormatter();
|
||||
$this->assertEquals(
|
||||
@@ -49,7 +49,7 @@ class FluentdFormatterTest extends TestCase
|
||||
*/
|
||||
public function testFormatWithTag()
|
||||
{
|
||||
$record = $this->getRecord(Logger::ERROR, datetime: new \DateTimeImmutable("@0"));
|
||||
$record = $this->getRecord(Level::Error, datetime: new \DateTimeImmutable("@0"));
|
||||
|
||||
$formatter = new FluentdFormatter(true);
|
||||
$this->assertEquals(
|
||||
|
Reference in New Issue
Block a user