예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 function log_warning($message, array $context = array())
 {
     $logger = new Logger();
     return $logger->warning($message, $context);
 }