i have laravel 5.1. logs cgi (web stuff) apache account , that's fine. problem if need on there run artisan command created (that uses log class) fails because doesn't have permission write log file apache created. there way tell laravel log different places based on whether it's via web or cli?
heading config/app.php file can choose log driver according executing user.
config/app.php
/*...*/ 'log' => php_sapi_name() === 'cli' ? 'syslog' : 'daily', /*...*/ you can change the log detail level if want mute completely.
Comments
Post a Comment