Chris@0: log(LogLevel::EMERGENCY, $message, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Action must be taken immediately. Chris@0: * Chris@0: * Example: Entire website down, database unavailable, etc. This should Chris@0: * trigger the SMS alerts and wake you up. Chris@0: * Chris@0: * @param string $message Chris@0: * @param array $context Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: public function alert($message, array $context = array()) Chris@0: { Chris@0: $this->log(LogLevel::ALERT, $message, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Critical conditions. Chris@0: * Chris@0: * Example: Application component unavailable, unexpected exception. Chris@0: * Chris@0: * @param string $message Chris@0: * @param array $context Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: public function critical($message, array $context = array()) Chris@0: { Chris@0: $this->log(LogLevel::CRITICAL, $message, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Runtime errors that do not require immediate action but should typically Chris@0: * be logged and monitored. Chris@0: * Chris@0: * @param string $message Chris@0: * @param array $context Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: public function error($message, array $context = array()) Chris@0: { Chris@0: $this->log(LogLevel::ERROR, $message, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Exceptional occurrences that are not errors. Chris@0: * Chris@0: * Example: Use of deprecated APIs, poor use of an API, undesirable things Chris@0: * that are not necessarily wrong. Chris@0: * Chris@0: * @param string $message Chris@0: * @param array $context Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: public function warning($message, array $context = array()) Chris@0: { Chris@0: $this->log(LogLevel::WARNING, $message, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Normal but significant events. Chris@0: * Chris@0: * @param string $message Chris@0: * @param array $context Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: public function notice($message, array $context = array()) Chris@0: { Chris@0: $this->log(LogLevel::NOTICE, $message, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Interesting events. Chris@0: * Chris@0: * Example: User logs in, SQL logs. Chris@0: * Chris@0: * @param string $message Chris@0: * @param array $context Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: public function info($message, array $context = array()) Chris@0: { Chris@0: $this->log(LogLevel::INFO, $message, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Detailed debug information. Chris@0: * Chris@0: * @param string $message Chris@0: * @param array $context Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: public function debug($message, array $context = array()) Chris@0: { Chris@0: $this->log(LogLevel::DEBUG, $message, $context); Chris@0: } Chris@0: }