Esempio n. 1
0
 /**
  * Records the message to the global logger if one exists.
  * @param string $msg The message itself.
  * @param integer $type The message type.
  * @param boolean $has_html Does the message contain HTML tags that must be
  * preserved?
  */
 public function record($msg, $type = Msg_type_debug_info, $channel = Msg_channel_default, $has_html = false)
 {
     if ($this->_passes_filter($channel, $type)) {
         $this->_record($msg, $type, $channel, $has_html);
     }
     $this->_last_channel = $channel;
     $this->_last_type = $type;
     if (isset($this->logger)) {
         $this->logger->record($msg, $type, $channel, $has_html);
     }
 }