Gobline\Logger\Writer\FileLogWriter
writes log information to a rolling file.
$dir = './logs';
$filename = 'logfile';
$rollTime = Gobline\Logger\Writer\FileLogWriter::ROLL_DAILY;
$rollSize = '10MB';
$writer = new Gobline\Logger\Writer\FileLogWriter($dir, $filename, $rollTime, $rollSize);
$writer->info('hello world');
You can install the File Log Writer using the dependency management tool Composer. Run the require command to resolve and download the dependencies:
composer require gobline/logwriter-file