While developing a web service in Symfony 4.3 I need to show logs in the terminal to check the content of some variables. For this I initialize the server with:
symfony server:start --port=8000
And the server starts
[OK] Web server listening on http://127.0.0.1:8000 (PHP FPM 7.2.19)
WARNING unable to find the application log
In my code I have a few logs like:
public function findItems(string $data): Items
{
[$code, $result] = Curl::makeCurl($data);
echo 'CODE';
print_r($code);
echo 'RESULT';
print_r($result);
$items = doSomething($result);
return $items;
}
But Even if the web server terminal shows the controller receiving the call and the code failing in the line:
$items = doSomething($result);
The logs above are not showing.
Is there a way I can see the logs in the web server?