From 0d728feb7c53eb4151c8c2228e81fe59cd859d6c Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 1 Jun 2011 01:05:23 +0200 Subject: [PATCH] Fixed forwarding of the context in logging calls --- src/Monolog/Logger.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Monolog/Logger.php b/src/Monolog/Logger.php index 7c8525ac..fd8ee8bd 100644 --- a/src/Monolog/Logger.php +++ b/src/Monolog/Logger.php @@ -187,7 +187,7 @@ class Logger */ public function addDebug($message, array $context = array()) { - return $this->addRecord(self::DEBUG, $message); + return $this->addRecord(self::DEBUG, $message, $context); } /** @@ -199,7 +199,7 @@ class Logger */ public function addInfo($message, array $context = array()) { - return $this->addRecord(self::INFO, $message); + return $this->addRecord(self::INFO, $message, $context); } /** @@ -211,7 +211,7 @@ class Logger */ public function addWarning($message, array $context = array()) { - return $this->addRecord(self::WARNING, $message); + return $this->addRecord(self::WARNING, $message, $context); } /** @@ -223,7 +223,7 @@ class Logger */ public function addError($message, array $context = array()) { - return $this->addRecord(self::ERROR, $message); + return $this->addRecord(self::ERROR, $message, $context); } /** @@ -235,7 +235,7 @@ class Logger */ public function addCritical($message, array $context = array()) { - return $this->addRecord(self::CRITICAL, $message); + return $this->addRecord(self::CRITICAL, $message, $context); } /** @@ -247,7 +247,7 @@ class Logger */ public function addAlert($message, array $context = array()) { - return $this->addRecord(self::ALERT, $message); + return $this->addRecord(self::ALERT, $message, $context); } /** @@ -274,7 +274,7 @@ class Logger */ public function debug($message, array $context = array()) { - return $this->addRecord(self::DEBUG, $message); + return $this->addRecord(self::DEBUG, $message, $context); } /** @@ -288,7 +288,7 @@ class Logger */ public function info($message, array $context = array()) { - return $this->addRecord(self::INFO, $message); + return $this->addRecord(self::INFO, $message, $context); } /** @@ -302,7 +302,7 @@ class Logger */ public function notice($message, array $context = array()) { - return $this->addRecord(self::INFO, $message); + return $this->addRecord(self::INFO, $message, $context); } /** @@ -316,7 +316,7 @@ class Logger */ public function warn($message, array $context = array()) { - return $this->addRecord(self::WARNING, $message); + return $this->addRecord(self::WARNING, $message, $context); } /** @@ -330,7 +330,7 @@ class Logger */ public function err($message, array $context = array()) { - return $this->addRecord(self::ERROR, $message); + return $this->addRecord(self::ERROR, $message, $context); } /** @@ -344,7 +344,7 @@ class Logger */ public function crit($message, array $context = array()) { - return $this->addRecord(self::CRITICAL, $message); + return $this->addRecord(self::CRITICAL, $message, $context); } /** @@ -358,7 +358,7 @@ class Logger */ public function alert($message, array $context = array()) { - return $this->addRecord(self::ALERT, $message); + return $this->addRecord(self::ALERT, $message, $context); } /** @@ -372,6 +372,6 @@ class Logger */ public function emerg($message, array $context = array()) { - return $this->addRecord(self::ALERT, $message); + return $this->addRecord(self::ALERT, $message, $context); } }