From 038591af3fa3b5c1e2964a55d7f15de7cfb63c9b Mon Sep 17 00:00:00 2001 From: Plenty Su Date: Fri, 17 Apr 2015 03:34:37 +0800 Subject: [PATCH] Support logging formatted record --- src/ScribeHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ScribeHandler.php b/src/ScribeHandler.php index 7abcd79..fe306bd 100644 --- a/src/ScribeHandler.php +++ b/src/ScribeHandler.php @@ -18,6 +18,7 @@ public function __construct($host, $port) public function handle(array $record) { - $this->scribe->log($record['channel'], $record['message']); + $formatted = $this->getFormatter()->format($record); + $this->scribe->log($record['channel'], $formatted); } }