From a1443857f748f74e6b11adb3824eb9fe1295a9d8 Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Thu, 10 Sep 2015 20:35:51 +0200 Subject: [PATCH] Refactor. --- ykval-log.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ykval-log.php b/ykval-log.php index 290451e..54e6105 100644 --- a/ykval-log.php +++ b/ykval-log.php @@ -72,9 +72,12 @@ class Log $message = $prefix . $message . $suffix; - syslog($priority, - $this->log_levels[$priority] . ':' . - $this->name . ':' . - $message); + $message = implode(':', array( + $this->log_levels[$priority], + $this->name, + $message + )); + + syslog($priority, $message); } }