diff --git a/src/AbstractLogglyLogger.php b/src/AbstractLogglyLogger.php index e2f4c0a..4f75d6e 100644 --- a/src/AbstractLogglyLogger.php +++ b/src/AbstractLogglyLogger.php @@ -46,8 +46,7 @@ protected function format($level, $message, array $context): string $message = $this->processPlaceHolders($message, $context); $json = json_encode([ 'level' => $level, - 'message' => $message, - 'level_message' => $level . ' ' . $message, + 'message' => $level . ' ' . $message, 'context' => $context, ]); diff --git a/tests/LogglyBulkLoggerTest.php b/tests/LogglyBulkLoggerTest.php index 691f372..3eb31b1 100644 --- a/tests/LogglyBulkLoggerTest.php +++ b/tests/LogglyBulkLoggerTest.php @@ -33,7 +33,7 @@ public function getLogger() $request = $this->prophesize(Request::class); $request->end(Argument::that(function ($data) { $json = json_decode($data, true); - $this->logs[] = $json['level_message']; + $this->logs[] = $json['message']; return true; }))->shouldBeCalled(); diff --git a/tests/LogglyLoggerTest.php b/tests/LogglyLoggerTest.php index e57fd68..1ab361d 100644 --- a/tests/LogglyLoggerTest.php +++ b/tests/LogglyLoggerTest.php @@ -23,7 +23,7 @@ public function getLogger() $request = $this->prophesize(Request::class); $request->end(Argument::that(function ($data) { $json = json_decode($data, true); - $this->logs[] = $json['level_message']; + $this->logs[] = $json['message']; return true; }))->shouldBeCalled();