I have the below settings in my supervisor/conf.d/myconf.conf file :
[program:my-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var
Based on @PrabhatRai answer, here is another configuration example that looks more like Laravel's default behavior.
Add this code to bootstrap/app.php
:
$app->configureMonologUsing(function (Monolog\Logger $monolog) {
$filename = storage_path('logs/' . php_sapi_name() . '-' . posix_getpwuid(posix_geteuid())['name'] . '.log');
$monolog->pushHandler($handler = new Monolog\Handler\RotatingFileHandler($filename, 30));
$handler->setFilenameFormat('laravel-{date}-{filename}', 'Y-m-d');
$handler->setFormatter(new \Monolog\Formatter\LineFormatter(null, null, true, true));
});
laravel-2017-03-27-cli-raph.log
and laravel-2017-03-27-fpm-cgi-raph.log
which is more readable.