"Does Laravel fire up, handle a single request, and exit?"
That's how PHP works. The webserver will hand over 1 request to the PHP process, and after the PHP script ran, it dies.
The next request will start clean (booting laravel first, then running the code, then die'ing again)
If you want to change what is going into the log you can simply set it up with '$app->configureMonologUsing' in /bootstrap/app.php
$app->configureMonologUsing(function ($monolog) use ($app) {
$sid = request()->get('CallSid');
$logStreamHandler = new \Monolog\Handler\StreamHandler(storage_path('logs/laravel.log'), \Monolog\Logger::DEBUG);
// Formatting
$formatter = new Monolog\Formatter\LineFormatter("[%datetime%] SID=". $sid ." %channel%.%level_name%: %message% %context% %extra%");
$logStreamHandler->setFormatter($formatter);
$monolog->pushHandler($logStreamHandler);
});
After that, when you do :
\Log::debug('test');
It will add a line like:
[2018-02-22 15:44:33] SID=ae737726df721 local.DEBUG: test