Example #1
0
 public function log($msg, $type)
 {
     $msg = '[CrawlerShell] ' . $msg;
     return parent::log($msg, $type);
 }
Example #2
0
 /**
  * @brief overload log to show on the screen when needed and log files
  *
  * @see http://api13.cakephp.org/class/object#method-Objectlog
  *
  * @param string $message the message to log
  *
  * @return boolean Success of log write
  */
 public function log($message)
 {
     $this->out($message);
     return parent::log($message, 'cron_jobs');
 }