public function __construct($class, $msg = NULL) { if ($msg != NULL) { $this->message = $msg . " в файле " . $this->file; } if (LOGS_ON) { $log = new CLog(); $log->logging($class, $this->message); } }
public function __construct($class, $msg = NULL) { if ($msg != NULL) { $this->message = $msg . " в файле " . $this->file . " в строке #" . $this->line; } if (CApp::settings("APPLICATION")->settings['logs_on']) { $log = new CLog(); $log->logging($class, $this->message); } }