所以下面的代码提取我正在寻找的数据,并将其转储到命令行,但它不会写入日志文件......关于我应该如何做的任何线索?
public function fire()
{
Log::info('Starting Pull', array('Start Pull' => 'Begin');
$this->line('Pulling Data From Source.');
$sites=Site::all();
foreach($sites as $site){
Log::info('Doing Pull for', array('data Pull' => print_r($site->tag,true)));
}
$this->line('Completed');
Log::info('End Pull', array('End Pull' => 'Done');
}