protected function initlog() { $logfile = VAR_DIR . '/log/' . $this->sign . '_' . $this->mypid . '.log.' . date('Ymd'); Log::logfile($logfile); Log::level(Log::INFO); }