|
|
@@ -328,102 +328,6 @@ class Logger implements LoggerInterface
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Adds a log record at the DEBUG level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addDebug($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::DEBUG, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Adds a log record at the INFO level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addInfo($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::INFO, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Adds a log record at the NOTICE level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addNotice($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::NOTICE, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Adds a log record at the WARNING level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addWarning($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::WARNING, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Adds a log record at the ERROR level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addError($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::ERROR, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Adds a log record at the CRITICAL level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addCritical($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::CRITICAL, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Adds a log record at the ALERT level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addAlert($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::ALERT, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Adds a log record at the EMERGENCY level.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function addEmergency($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::EMERGENCY, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Gets all supported logging levels.
|
|
|
*
|
|
|
@@ -544,20 +448,6 @@ class Logger implements LoggerInterface
|
|
|
return $this->addRecord(static::NOTICE, $message, $context);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Adds a log record at the WARNING level.
|
|
|
- *
|
|
|
- * This method allows for compatibility with common interfaces.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function warn($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::WARNING, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Adds a log record at the WARNING level.
|
|
|
*
|
|
|
@@ -572,20 +462,6 @@ class Logger implements LoggerInterface
|
|
|
return $this->addRecord(static::WARNING, $message, $context);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Adds a log record at the ERROR level.
|
|
|
- *
|
|
|
- * This method allows for compatibility with common interfaces.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function err($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::ERROR, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Adds a log record at the ERROR level.
|
|
|
*
|
|
|
@@ -600,20 +476,6 @@ class Logger implements LoggerInterface
|
|
|
return $this->addRecord(static::ERROR, $message, $context);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Adds a log record at the CRITICAL level.
|
|
|
- *
|
|
|
- * This method allows for compatibility with common interfaces.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function crit($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::CRITICAL, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Adds a log record at the CRITICAL level.
|
|
|
*
|
|
|
@@ -642,20 +504,6 @@ class Logger implements LoggerInterface
|
|
|
return $this->addRecord(static::ALERT, $message, $context);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Adds a log record at the EMERGENCY level.
|
|
|
- *
|
|
|
- * This method allows for compatibility with common interfaces.
|
|
|
- *
|
|
|
- * @param string $message The log message
|
|
|
- * @param array $context The log context
|
|
|
- * @return Boolean Whether the record has been processed
|
|
|
- */
|
|
|
- public function emerg($message, array $context = array())
|
|
|
- {
|
|
|
- return $this->addRecord(static::EMERGENCY, $message, $context);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Adds a log record at the EMERGENCY level.
|
|
|
*
|