コード例 #1
1
ファイル: triggermanager.php プロジェクト: Hawkart/megatv
 /**
  * @param string $mess
  * @return void
  */
 public static function debug($mess)
 {
     if (static::$debug) {
         \Bitrix\Main\Diag\Debug::writeToFile($mess, "", "__bx_sender_trigger.log");
     }
 }
コード例 #2
0
 /**
  * @param $data
  * @return bool
  */
 public function printToFile($data)
 {
     if (!isset($this->options['path'])) {
         throw new \Shantilab\BxEcho\Exceptions\EmptyFilePathException();
     }
     if ($this->options['type'] == 'dump') {
         Debug::dumpToFile($data, null, $this->options['path']);
     }
     if ($this->options['type'] == 'write') {
         Debug::writeToFile($data, null, $this->options['path']);
     }
 }