mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 17:16:18 +02:00
Added 'timestamp' parameter to $record for indexing by Loggly
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
namespace Monolog\Handler;
|
||||
|
||||
use Monolog\Logger;
|
||||
use Monolog\Formatter\JsonFormatter;
|
||||
use Monolog\Formatter\LogglyFormatter;
|
||||
|
||||
/**
|
||||
* Sends errors to Loggly.
|
||||
@@ -88,6 +88,6 @@ class LogglyHandler extends AbstractProcessingHandler
|
||||
|
||||
protected function getDefaultFormatter()
|
||||
{
|
||||
return new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES);
|
||||
return new LogglyFormatter();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user