diff --git a/ykval-log.php b/ykval-log.php index f6d949a..cfc05c0 100644 --- a/ykval-log.php +++ b/ykval-log.php @@ -65,15 +65,15 @@ class Log } } - $msg_fields = ''; - foreach ($this->fields as $field => $value) { - $msg_fields .= '[' . $value . '] '; - } + $fields = ''; + + foreach ($this->fields as $val) + $fields .= "[$val] "; syslog($priority, $this->log_levels[$priority] . ':' . $this->name . ':' . - $msg_fields . + $fields . $message); } }