/** * @param string $mess * @return void */ public static function debug($mess) { if (static::$debug) { \Bitrix\Main\Diag\Debug::writeToFile($mess, "", "__bx_sender_trigger.log"); } }
/** * @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']); } }