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
Post a Comment