1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00

Replaced LogglyFormatter with option to change batch formatting in JsonFormatter

This commit is contained in:
Adam Pancutt
2014-01-21 11:39:58 +00:00
parent e17aad1a99
commit 95f0649b59
4 changed files with 69 additions and 74 deletions

View File

@@ -12,7 +12,7 @@
namespace Monolog\Handler;
use Monolog\Logger;
use Monolog\Formatter\LogglyFormatter;
use Monolog\Formatter\JsonFormatter;
/**
* Sends errors to Loggly.
@@ -88,6 +88,6 @@ class LogglyHandler extends AbstractProcessingHandler
protected function getDefaultFormatter()
{
return new LogglyFormatter();
return new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES);
}
}