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 -

ios - MKMapView fails to load tiles with HTTP 410 error -

c# - How to utilize EF and LINQ to add filters and specify tables, columns, filters and order by dynamically -