laravel icon indicating copy to clipboard operation
laravel copied to clipboard

The console doesn't output anything

Open LittleHans8 opened this issue 3 years ago • 1 comments

I plan to print some logs, but there is no output.

Environment:Win11; PHPStorm image

But when I try to run the same code on macos ,it works:

image

LittleHans8 avatar Jun 09 '22 11:06 LittleHans8

I think you should test the site on the Linux/macos side

AkioSarkiz avatar Jul 30 '22 21:07 AkioSarkiz

This is because Roach uses the logging configuration of your Laravel app for its logger. So it will probably log to your laravel.log file. The easiest way to get the output in your terminal is to temporarily change your LOG_CHANNEL environment variable to stderr before running the spider.

LOG_CHANNEL=stderr php artisan roach:run MySpider

ksassnowski avatar Feb 06 '23 06:02 ksassnowski