Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I suppress the warning "unable to find the application log" after running "symfony serve"?

With Symfony 4.3 and Symfony CLI v4.7.1, when I run:

symfony serve

I see the following warning in the output:

WARNING unable to find the application log

How do I solve the issue that raises this warning? Do I have to install the logger bundle?

like image 367
Geoffrey Avatar asked Oct 08 '19 19:10

Geoffrey


2 Answers

I have bumped into the same issue today. For some reason, I had to create an empty log file (dev.log) inside the var/log directory. After that, the warning disappeared and the log messages appeared in the file.

like image 93
Jan Bodnar Avatar answered Oct 08 '22 04:10

Jan Bodnar


You have to install the "logger" package:

composer require logger
like image 38
Andrea Tarsi Avatar answered Oct 08 '22 03:10

Andrea Tarsi