add LogComponent, example: $this->Log->writeLog($ten_file_log,$noi_dung_log) //tao file log trong webroot/log/