Exemplo n.º 1
0
 /**
  * Log debug data to file
  *
  * @param mixed $debugData
  * @return $this
  */
 protected function debug($debugData)
 {
     if ($this->config->isDebugEnabled() && !empty($debugData)) {
         $this->logger->debug(var_export($debugData, true));
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Log debug data to file
  *
  * @param mixed $debugData
  * @return $this
  */
 protected function _debug($debugData)
 {
     if (!$this->config->isDebugEnabled()) {
         return $this;
     }
     if (!is_array($debugData)) {
         if (is_object($debugData)) {
             $debugData = var_export($debugData, true);
         } else {
             $debugData = [$debugData];
         }
     }
     parent::_debug((array) $debugData);
     return $this;
 }