php - how to keep log file foreever in laravel application? -


i found log file deleted end of day laravel log directory. please suggest setting should apply keep log file forever.

find following file:

vendor/laravel/framework/src/illuminate/log/writer.php

and find following function:

public function usedailyfiles($path, $days = 0, $level = 'debug')     {         $this->monolog->pushhandler(             $handler = new rotatingfilehandler($path, $days, $this->parselevel($level))         );          $handler->setformatter($this->getdefaultformatter());     } 

you can set parameter $days variable. e.g. $days = 365


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -