1
0
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:
Adam Pancutt
2014-01-22 14:31:31 +00:00
parent b748794bba
commit a46413b15b
3 changed files with 91 additions and 2 deletions

View File

@@ -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();
}
}