I'm looking for a way to prepend (instead of append) new logs to the log file. The problem is for the big logfile, I should scroll a lot to see new logs.
First what you do is add a entry in config/logging.php
like this:
'newLog' => [
'driver' => 'single',
'path' => storage_path('logs/newLog.log'),
'level' => env('LOG_LEVEL', 'debug'),
],
Understand the Log level and driver system of laravel here .
I hope I could help you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.