mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Make MongoDBFormatter default formatter for the MongoDBHandler in 2.0
This commit is contained in:
@@ -16,7 +16,7 @@ use MongoDB\Driver\Manager;
|
||||
use MongoDB\Client;
|
||||
use Monolog\Logger;
|
||||
use Monolog\Formatter\FormatterInterface;
|
||||
use Monolog\Formatter\NormalizerFormatter;
|
||||
use Monolog\Formatter\MongoDBFormatter;
|
||||
|
||||
/**
|
||||
* Logs to a MongoDB database.
|
||||
@@ -80,6 +80,6 @@ class MongoDBHandler extends AbstractProcessingHandler
|
||||
*/
|
||||
protected function getDefaultFormatter(): FormatterInterface
|
||||
{
|
||||
return new NormalizerFormatter;
|
||||
return new MongoDBFormatter;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user