/** * 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 warning($message, array $context = array()) { return $this->logger->addWarning($message, $context); }
function log_warning($message, array $context = array()) { $logger = new Logger(); return $logger->warning($message, $context); }