git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8588 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fBrignoli
2011-09-14 15:50:15 +00:00
parent 28c187186f
commit 1db441bc42
+8 -10
View File
@@ -29,9 +29,9 @@ abstract class AbstractLoggerCore
{
public $level;
protected $level_value = array(0 => 'DEBUG',
1 => 'INFO',
2 => 'WARNING',
3 => 'ERROR');
1 => 'INFO',
2 => 'WARNING',
3 => 'ERROR');
const DEBUG = 0;
const INFO = 1;
@@ -55,17 +55,15 @@ abstract class AbstractLoggerCore
abstract protected function logMessage($message, $level);
/**
* Check the level and log the message if needed
*
* @param string message
* @param level
*/
* Check the level and log the message if needed
*
* @param string message
* @param level
*/
public function log($message, $level = self::DEBUG)
{
if ($level >= $this->level)
{
$this->logMessage($message, $level);
}
}
/**